Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

windowActivated - is this normal for MacOS?



I have some code that keeps track of multiple document windows in an application by maintaining a List and watching for windowActivated messages to keep track of which JFrame is active. I am testing this by creating two new JFrames, Untitled 1 and Untitled 2. When they are created they are placed in the list. Below is some debugging print statements, tracking the adding of JFrames to the list and the activation and deactivation of those JFrames. This seems odd too me that there is so much activity just from the creation of the JFrames. And odder still that Untitled 1 is the JFrame that is activated last, since Untitled 2 is clearly the active window on the desktop. Am I misunderstanding/misusing these methods of the windowAdapter, or is this a bug?



CALLING ADD  DOCUMENT
_________________________
1 = Untitled 1
_________________________
CALLING ADD  DOCUMENT
_________________________
1 = Untitled 2
2 = Untitled 1
_________________________
DEACTIVATE :: Untitled 1
ACTIVATE :: Untitled 2
CALLING SET FRONT DOCUMENT
_________________________
1 = Untitled 2
2 = Untitled 1
_________________________
DEACTIVATE :: Untitled 2
ACTIVATE :: Untitled 1
CALLING SET FRONT DOCUMENT
_________________________
1 = Untitled 1
2 = Untitled 2
_________________________

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.