Mailing Lists: Apple Mailing Lists

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

Focus hogging help menu




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


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.