-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b56
-
x86
-
windows_xp
FULL PRODUCT VERSION :
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows XP Professional with SP1a (Simplified Chinese)
EXTRA RELEVANT SYSTEM CONFIGURATION :
NetVista M42 8307-41C (CPU: Pentium 4 2.4GHz, Memory: 512MB, Video: Intel 82845G)
A DESCRIPTION OF THE PROBLEM :
Running SwingSet2 demo with CityIM, java thrown the following message:
Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException:
component must be showing on the screen to determine its location
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Run demo: "java -jar SwingSet2.jar"
2. Activate City Input Method
3. Go to JColorChooserDemo panel
4. Click "Background" button, selected any color, then click "OK"
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The demo should run is normal
ACTUAL -
Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException:
component must be showing on the screen to determine its location
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException:
component must be showing on the screen to determine its location
at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1678
)
at java.awt.Component.getLocationOnScreen(Component.java:1652)
at com.sun.demos.cityim.internal.CityInputMethod.dispatchEvent(CityInput
Method.java:369)
at sun.awt.im.InputContext.dispatchEvent(InputContext.java:238)
at sun.awt.im.InputMethodContext.dispatchEvent(InputMethodContext.java:1
80)
at java.awt.Component.dispatchEventImpl(Component.java:3902)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
\demo\jfc\SwingSet2\SwingSet2.jar
---------- END SOURCE ----------
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows XP Professional with SP1a (Simplified Chinese)
EXTRA RELEVANT SYSTEM CONFIGURATION :
NetVista M42 8307-41C (CPU: Pentium 4 2.4GHz, Memory: 512MB, Video: Intel 82845G)
A DESCRIPTION OF THE PROBLEM :
Running SwingSet2 demo with CityIM, java thrown the following message:
Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException:
component must be showing on the screen to determine its location
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Run demo: "java -jar SwingSet2.jar"
2. Activate City Input Method
3. Go to JColorChooserDemo panel
4. Click "Background" button, selected any color, then click "OK"
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The demo should run is normal
ACTUAL -
Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException:
component must be showing on the screen to determine its location
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException:
component must be showing on the screen to determine its location
at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1678
)
at java.awt.Component.getLocationOnScreen(Component.java:1652)
at com.sun.demos.cityim.internal.CityInputMethod.dispatchEvent(CityInput
Method.java:369)
at sun.awt.im.InputContext.dispatchEvent(InputContext.java:238)
at sun.awt.im.InputMethodContext.dispatchEvent(InputMethodContext.java:1
80)
at java.awt.Component.dispatchEventImpl(Component.java:3902)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
\demo\jfc\SwingSet2\SwingSet2.jar
---------- END SOURCE ----------