Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6342641

ArrayIndexOutOfBoundException when moving Swing app into secondary monitor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 6
    • client-libs
    • 2d
    • x86
    • windows_xp

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: