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

NIMBUS: Drag and drop throws a NPE in SwingSet2 ColorChooser

    Details

    • Subcomponent:
    • Resolved In Build:
      b64
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_2.5.1
    • Verification:
      Verified

      Backports

        Description

        OPERATING SYSTEM
        ----------------
        Windows XP

        FULL JDK VERSION
        ----------------
        java version "1.6.0_14-ea"
        Java(TM) SE Runtime Environment (build 1.6.0_14-ea-b03)
        Java HotSpot(TM) Client VM (build 14.0-b12, mixed mode)

        RECREATION INSTRUCTIONS
        -----------------------
        1. Launch SwingSet2 demo using NimbusLookAndFeel:

           java -Dswing.defaultlaf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel -jar SwingSet2.jar

        2. Enable drag and drop from the options menu.

        3. Select ColorChooser tab, click 'Background'

        4. In the color chooser dialog, choose a color and click one of the
           colored squares in the preview area. NPE is thrown on the console:

        Exception occurred during event dispatching:
        java.lang.NullPointerException
                at javax.swing.plaf.basic.BasicColorChooserUI$Handler.mousePressed(BasicColorChooserUI.java:220)
                at java.awt.Component.processMouseEvent(Component.java:6234)
                at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
                at java.awt.Component.processEvent(Component.java:6002)
                at java.awt.Container.processEvent(Container.java:2041)
                at java.awt.Component.dispatchEventImpl(Component.java:4604)
                at java.awt.Container.dispatchEventImpl(Container.java:2099)
                at java.awt.Component.dispatchEvent(Component.java:4434)
                at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
                at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
                at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
                at java.awt.Container.dispatchEventImpl(Container.java:2085)
                at java.awt.Window.dispatchEventImpl(Window.java:2475)
                at java.awt.Component.dispatchEvent(Component.java:4434)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
                at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
                at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
                at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
                at java.awt.Dialog$1.run(Dialog.java:1051)
                at java.awt.Dialog$3.run(Dialog.java:1103)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.awt.Dialog.show(Dialog.java:1101)
                at javax.swing.ColorChooserDialog.show(JColorChooser.java:703)
                at ColorChooserDemo$1.actionPerformed(ColorChooserDemo.java:140)
                at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
                at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
                at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
                at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
                at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
                at java.awt.Component.processMouseEvent(Component.java:6237)
                at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
                at java.awt.Component.processEvent(Component.java:6002)
                at java.awt.Container.processEvent(Container.java:2041)
                at java.awt.Component.dispatchEventImpl(Component.java:4604)
                at java.awt.Container.dispatchEventImpl(Container.java:2099)
                at java.awt.Component.dispatchEvent(Component.java:4434)
                at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
                at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
                at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
                at java.awt.Container.dispatchEventImpl(Container.java:2085)
                at java.awt.Window.dispatchEventImpl(Window.java:2475)
                at java.awt.Component.dispatchEvent(Component.java:4434)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
                at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
                at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
                at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

        Release Regression From : 6u11
        The above release value was the last known release where this
        bug was not reproducible. Since then there has been a regression.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  peterz Peter Zhelezniakov (Inactive)
                  Reporter:
                  ryeung Roger Yeung (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: