ArrayIndexOutOfBoundException when moving Swing app into secondary monitor

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 6
    • Component/s: client-libs
    • 2d
    • 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)

            Assignee:
            Dmitri Trembovetski (Inactive)
            Reporter:
            David Simonek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: