-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
6
-
x86
-
windows_xp
Steps to reproduce:
1) Configure your Win XP so that it's using just one primary monitor, have secondary monitor available but disabled.
2) Run SwingSet2 demo application
3) Enable secondary display in OS settings, wait for display to enlightent itself :-)
4) Drag SwingSet2 window to secondary monitor area
Result: AIOOBE thrown:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException:
1
at sun.awt.windows.WWindowPeer.updateGC(WWindowPeer.java:264)
at sun.awt.windows.WWindowPeer.displayChanged(WWindowPeer.java:291)
at sun.awt.windows.WWindowPeer$1.run(WWindowPeer.java:235)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
1) Configure your Win XP so that it's using just one primary monitor, have secondary monitor available but disabled.
2) Run SwingSet2 demo application
3) Enable secondary display in OS settings, wait for display to enlightent itself :-)
4) Drag SwingSet2 window to secondary monitor area
Result: AIOOBE thrown:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException:
1
at sun.awt.windows.WWindowPeer.updateGC(WWindowPeer.java:264)
at sun.awt.windows.WWindowPeer.displayChanged(WWindowPeer.java:291)
at sun.awt.windows.WWindowPeer$1.run(WWindowPeer.java:235)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
- duplicates
-
JDK-4417798 Need to track add/remove of monitors on display changes
- Closed
- relates to
-
JDK-4417795 GraphicsEnvironment does not detect when multiple monitors are added/removed
- Closed