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

Some problem of Custom Layout FileChooser in SwingSet2 Demo

    XMLWordPrintable

    Details

      Description

      In FCS-N, there are some problems in Custom Layout FileChooser of SwingSet2 Demo:
      1. In Chinese Windows 98, there are two strange characters in JLabel.
         I attatched a snapshot of this.
      2. when leave input box blank and press ok, exceptions appears(See below).
         (This happens in both solaris and Win95/98/NT
      java.lang.NullPointerException
              at FileChooserDemo$6.actionPerformed(FileChooserDemo.java:272)
              at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1273)
              at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1325)
              at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:382)
              at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:254)
              at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
              at java.awt.Component.processMouseEvent(Component.java:3718)
              at java.awt.Component.processEvent(Component.java:3547)
              at java.awt.Container.processEvent(Container.java:1167)
              at java.awt.Component.dispatchEventImpl(Component.java:2596)
              at java.awt.Container.dispatchEventImpl(Container.java:1216)
              at java.awt.Component.dispatchEvent(Component.java:2500)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2431)
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2196)
              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2105)
              at java.awt.Container.dispatchEventImpl(Container.java:1203)
              at java.awt.Window.dispatchEventImpl(Window.java:916)
              at java.awt.Component.dispatchEvent(Component.java:2500)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:320)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:107)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:97)
              at java.awt.Dialog.show(Dialog.java:374)
              at FileChooserDemo$4.actionPerformed(FileChooserDemo.java:245)
              at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1273)
              at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1325)
              at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:382)
              at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:254)
              at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
              at java.awt.Component.processMouseEvent(Component.java:3718)
              at java.awt.Component.processEvent(Component.java:3547)
              at java.awt.Container.processEvent(Container.java:1167)
              at java.awt.Component.dispatchEventImpl(Component.java:2596)
              at java.awt.Container.dispatchEventImpl(Container.java:1216)
              at java.awt.Component.dispatchEvent(Component.java:2500)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2431)
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2196)
              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2105)
              at java.awt.Container.dispatchEventImpl(Container.java:1203)
              at java.awt.Window.dispatchEventImpl(Window.java:916)
              at java.awt.Component.dispatchEvent(Component.java:2500)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:320)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:107)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:97)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)

        Attachments

          Activity

            People

            Assignee:
            sherman Xueming Shen
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: