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

the swing UI will dead when set as windows style

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows, windows_2000

      Description

      merlin b81
      windows2000 zh_TW

      using attachment testcase, reproduce as fellow:
      1.tar -xvf swing_awt_tests.tar
      2.cd swingtest\classes
      3.java SwingTest -command test
      4.From the dialog windows, choose it style as windows(32only), then there will have exception as fellow, then UI dead.

      java.lang.NullPointerException
              at javax.swing.BoxLayout.preferredLayoutSize(Unknown Source)
              at java.awt.Container.preferredSize(Unknown Source)
              at java.awt.Container.getPreferredSize(Unknown Source)
              at javax.swing.JComponent.getPreferredSize(Unknown Source)
              at java.awt.FlowLayout.layoutContainer(Unknown Source)
              at java.awt.Container.layout(Unknown Source)
              at java.awt.Container.doLayout(Unknown Source)
              at java.awt.Container.validateTree(Unknown Source)
              at java.awt.Container.validateTree(Unknown Source)
              at java.awt.Container.validateTree(Unknown Source)
              at java.awt.Container.validate(Unknown Source)
              at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
              at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
      n Source)
              at java.awt.event.InvocationEvent.dispatch(Unknown Source)
              at java.awt.EventQueue.dispatchEvent(Unknown Source)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

              at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
              at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
              at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
              at java.awt.EventDispatchThread.run(Unknown Source)
      java.lang.NullPointerException
              at javax.swing.BoxLayout.preferredLayoutSize(Unknown Source)
              at java.awt.Container.preferredSize(Unknown Source)
              at java.awt.Container.getPreferredSize(Unknown Source)
              at javax.swing.JComponent.getPreferredSize(Unknown Source)
              at java.awt.FlowLayout.layoutContainer(Unknown Source)
              at java.awt.Container.layout(Unknown Source)
              at java.awt.Container.doLayout(Unknown Source)
              at java.awt.Container.validateTree(Unknown Source)
              at java.awt.Container.validateTree(Unknown Source)
              at java.awt.Container.validateTree(Unknown Source)
              at java.awt.Container.validate(Unknown Source)
              at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
              at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
      n Source)
              at java.awt.event.InvocationEvent.dispatch(Unknown Source)
              at java.awt.EventQueue.dispatchEvent(Unknown Source)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

              at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
              at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
              at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
              at java.awt.EventDispatchThread.run(Unknown Source)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              apikalev Andrey Pikalev
              Reporter:
              lefan Leon Fan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: