(update) The exception I mentioned in the previous post results when
an unfocused, alwaysOnTop, palette is visible. When Help closes, I
guess AppKit tries to return focus to an alwaysOnTop window by default
(?). It succeeds and then leaves a java app in a state with two
focused looking titlebars.
On Feb 28, 2008, at 6:42 PM, Peter Powers wrote:
Because the help menu contains a keyboard focused search box, I
understand that when it is invoked, AppKit must send a window focus
event to the (Java) application. Am I correct in assuming that Apple
has done something behind the scenes to prevent Window titlebars
from repainting as unfocused iff the help menu is open?
From this follows the question: is there any way to detect the help
menu being displayed so that focus related repaints can be aborted?
I imagine this will get back into the distinction Apple makes
between 'key' and 'main' windows that doesn't translate to Java.
Peter
On a side note, the following non-fatal exceptions are thrown when
the help menu closes...
java.lang.reflect.InvocationTargetException
at apple.awt.CToolkit.invokeAndWait(CToolkit.java:1068)
at apple.awt.CToolkit.invokeAndWait(CToolkit.java:1042)
at apple.laf.ScreenMenu.invokeMenuClosing(ScreenMenu.java:104)
Caused by: java.lang.NullPointerException
at apple.laf.ScreenMenu$2.run(ScreenMenu.java:109)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at apple.awt.CToolkit$CPeerEvent.dispatch(CToolkit.java:1124)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java
.awt
.EventDispatchThread
.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at
java
.awt
.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
-------------------------
Peter Powers
Dept. of Earth Sciences (ZHS 117)
University of Southern California
3651 Trousdale Pkwy.
Los Angeles, CA 90089-0740
-------------------------
_______________________________________________
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
-------------------------
Peter Powers
Dept. of Earth Sciences (ZHS 117)
University of Southern California
3651 Trousdale Pkwy.
Los Angeles, CA 90089-0740
-------------------------
_______________________________________________
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