Mailing Lists: Apple Mailing Lists

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

Re: QuaQua vs 1.4.2



I've seen this before on Windows, primarily using a popup
color chooser bean I wrote in a replacement color property editor
in NetBeans.

What was happening when I reproduced it: I have a popup that
tracks mouse events via a listener; it is embedded in a JTable cell
editor. A mouse pressed or clicked event will close the editor and
it will be removed from the component hierarchy. The processing
happens and the component gets removed. And the mouse
released event arrives after the component is no longer on screen,
but some handling for mouse-released also tries to check the mouse
position on the component.

I'm not sure that the final mouse event *should* arrive after the
target is off screen - there is an existing JDK bug about this.

The workaround/fix should be as simple as testing for isDisplayable() in the
mouse event handler.

-Tim

On Feb 6, 2004, at 1:26 AM, John Lussmyer wrote:

Is anyone else using quaqua with 1.4.2?
Is it working correctly for you?

Ever since I updated to 1.4.2 I get random exceptions when using quaqua
filechoosers. Sometimes they work, sometimes they don't. The exceptions
are generally like this one:

apple.awt.EventQueueExceptionHandler Caught Throwable :
java.awt.IllegalComponentStateException: component must be showing on the
screen to determine its location
at
java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1507)
at java.awt.Component.getLocationOnScreen(Component.java:1481)
at
ch.randelshofer.quaqua.JBrowser.getClosestPathForLocation(JBrowser.java :357)
at
ch.randelshofer.quaqua.JBrowser.getPathForLocation(JBrowser.java:513)
at
ch.randelshofer.quaqua.QuaquaFileChooserUI$DoubleClickListener.mouseCli cked(
QuaquaFileChooserUI.java:1692)
at
ch.randelshofer.quaqua.JBrowser$ColumnMouseListener.mousePressed(JBrows er.ja
va:1361)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222)
at java.awt.Component.processMouseEvent(Component.java:5097)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

-------------------------------------------------------
John Lussmyer (425) 551-5842 Creo Inc.
mailto:email@hidden <mailto:email@hidden> 1133
164th St SW
http://www.Creo.Com <http://www.Creo.Com> Lynnwood,
WA. 98037
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >QuaQua vs 1.4.2 (From: John Lussmyer <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.