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

Changing L&F from Nimbus to Window L&F causes NPE in SwingSet2

    Details

    • Subcomponent:
    • Introduced In Build:
      b20
    • Introduced In Version:
      12
    • Resolved In Build:
      b23

      Description

      Failed loading L&F: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
      java.lang.NullPointerException
      Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
              at java.desktop/javax.swing.plaf.basic.BasicTabbedPaneUI.tabForCoordinate(BasicTabbedPaneUI.java:1705)
              at java.desktop/javax.swing.plaf.basic.BasicTabbedPaneUI.setRolloverTab(BasicTabbedPaneUI.java:638)
              at java.desktop/javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mouseEntered(BasicTabbedPaneUI.java:4072)
              at java.desktop/java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:308)
              at java.desktop/java.awt.Component.processMouseEvent(Component.java:6641)
              at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
              at java.desktop/java.awt.Component.processEvent(Component.java:6397)
              at java.desktop/java.awt.Container.processEvent(Container.java:2263)
              at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
              at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
              at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
              at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
              at java.desktop/java.awt.LightweightDispatcher.retargetMouseEnterExit(Container.java:4698)
              at java.desktop/java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:4676)
              at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4527)
              at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
              at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
              at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2762)
              at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
              at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
              at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
              at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
              at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
              at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
              at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
              at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
              at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
              at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
              at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
              at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
              at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
              at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
              at java.desktop/javax.swing.plaf.synth.SynthButtonUI.getMinimumSize(SynthButtonUI.java:484)
              at java.desktop/javax.swing.JComponent.getMinimumSize(JComponent.java:1760)
              at java.desktop/javax.swing.BoxLayout.checkRequests(BoxLayout.java:479)
              at java.desktop/javax.swing.BoxLayout.minimumLayoutSize(BoxLayout.java:322)
              at java.desktop/java.awt.Container.minimumSize(Container.java:1875)
              at java.desktop/java.awt.Container.getMinimumSize(Container.java:1859)
              at java.desktop/javax.swing.JComponent.getMinimumSize(JComponent.java:1762)
              at java.desktop/javax.swing.BoxLayout.checkRequests(BoxLayout.java:479)
              at java.desktop/javax.swing.BoxLayout.minimumLayoutSize(BoxLayout.java:322)
              at java.desktop/java.awt.Container.minimumSize(Container.java:1875)
              at java.desktop/java.awt.Container.getMinimumSize(Container.java:1859)
              at java.desktop/javax.swing.JComponent.getMinimumSize(JComponent.java:1762)
              at java.desktop/javax.swing.BoxLayout.checkRequests(BoxLayout.java:479)
              at java.desktop/javax.swing.BoxLayout.layoutContainer(BoxLayout.java:421)
              at java.desktop/java.awt.Container.layout(Container.java:1537)
              at java.desktop/java.awt.Container.doLayout(Container.java:1526)
              at java.desktop/java.awt.Container.validateTree(Container.java:1722)
              at java.desktop/java.awt.Container.validateTree(Container.java:1731)
              at java.desktop/java.awt.Container.validateTree(Container.java:1731)
              at java.desktop/java.awt.Container.validateTree(Container.java:1731)
              at java.desktop/java.awt.Container.validateTree(Container.java:1731)
              at java.desktop/java.awt.Container.validateTree(Container.java:1731)
              at java.desktop/java.awt.Container.validateTree(Container.java:1731)
              at java.desktop/java.awt.Container.validate(Container.java:1657)
              at java.desktop/javax.swing.RepaintManager$3.run(RepaintManager.java:745)
              at java.desktop/javax.swing.RepaintManager$3.run(RepaintManager.java:743)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
              at java.desktop/javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:742)
              at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1883)
              at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
              at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
              at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
              at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
              at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
              at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
              at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
              at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
              at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
              at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
              at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                psadhukhan Prasanta Sadhukhan
                Reporter:
                psadhukhan Prasanta Sadhukhan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: