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

JFileChooser + Metal LF generate exception when clicking on an empty area

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.7, 1.2.0
    • client-libs
    • generic, x86
    • generic, windows_nt



      Name: krT82822 Date: 12/15/98


      1) Run FileChooserDemo
      2) Use Metal LF, click on "Show FileChooser"
      3) Select a directory with just some files and subdirectories
         (empty directory preferred) so there are some white space
         left at the bottom
      4) Click on that white space slowly, several time.
         Try clicking in several ways, click, double click,
         pressed the button for a while and release it and then click, etc.
         It is not always happen, but it does.

         This include Swing 1.1 + JDK 1.1.7.

      D:\jdk1.2\demo\jfc\FileChooserDemo>java FileChooserDemo
      Exception occurred during event dispatching:
      java.lang.NullPointerException:
              at javax.swing.plaf.metal.MetalFileChooserUI$SingleClickListener.mouseCl
      icked(MetalFileChooserUI.java:383)
              at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21
      1)
              at java.awt.Component.processMouseEvent(Component.java:3129)
              at java.awt.Component.processEvent(Compiled Code)
              at java.awt.Container.processEvent(Compiled Code)
              at java.awt.Component.dispatchEventImpl(Compiled Code)
              at java.awt.Container.dispatchEventImpl(Compiled Code)
              at java.awt.Component.dispatchEvent(Compiled Code)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
              at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
              at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
              at java.awt.Container.dispatchEventImpl(Compiled Code)
              at java.awt.Window.dispatchEventImpl(Compiled Code)
              at java.awt.Component.dispatchEvent(Compiled Code)
              at java.awt.EventQueue.dispatchEvent(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)
      Exception occurred during event dispatching:
      java.lang.NullPointerException:
              at javax.swing.plaf.metal.MetalFileChooserUI$SingleClickListener.mouseCl
      icked(MetalFileChooserUI.java:383)
              at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21
      1)
              at java.awt.Component.processMouseEvent(Component.java:3129)
              at java.awt.Component.processEvent(Compiled Code)
              at java.awt.Container.processEvent(Compiled Code)
              at java.awt.Component.dispatchEventImpl(Compiled Code)
              at java.awt.Container.dispatchEventImpl(Compiled Code)
              at java.awt.Component.dispatchEvent(Compiled Code)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
              at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
              at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
              at java.awt.Container.dispatchEventImpl(Compiled Code)
              at java.awt.Window.dispatchEventImpl(Compiled Code)
              at java.awt.Component.dispatchEvent(Compiled Code)
              at java.awt.EventQueue.dispatchEvent(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)
      Exception occurred during event dispatching:
      java.lang.NullPointerException:
              at javax.swing.plaf.metal.MetalFileChooserUI$SingleClickListener.mouseCl
      icked(MetalFileChooserUI.java:383)
              at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21
      1)
              at java.awt.Component.processMouseEvent(Compiled Code)
              at java.awt.Component.processEvent(Compiled Code)
              at java.awt.Container.processEvent(Compiled Code)
              at java.awt.Component.dispatchEventImpl(Compiled Code)
              at java.awt.Container.dispatchEventImpl(Compiled Code)
              at java.awt.Component.dispatchEvent(Compiled Code)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
              at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
              at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
              at java.awt.Container.dispatchEventImpl(Compiled Code)
              at java.awt.Window.dispatchEventImpl(Compiled Code)
              at java.awt.Component.dispatchEvent(Compiled Code)
              at java.awt.EventQueue.dispatchEvent(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)
      (Review ID: 47956)
      ======================================================================

            jeff Jeff Dinkins
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: