-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
beta
-
x86
-
linux
-
Verified
Steps to reproduce:
1) Launch FileChosserDemo
2) Click the 'ShowFileChooser' to view Open FileChooser dialog.
3) Close the dialog which opens by hitting on Cancel button.
4) Click the 'RemoveAllFiles' button.
5) Again click the 'ShowFileChooser' to view the dialog and then hit Cancel to close it.
6) Now select the 'Save' option and then select 'Motif' option.
The following exception comes on the console:
java.lang.ClassCastException: java.lang.String
at com.sun.java.swing.plaf.motif.MotifFileChooserUI$FilterComboBoxRenderer.getListCellRendererComponent(MotifFileChooserUI.java:592)
at javax.swing.plaf.basic.BasicComboBoxUI.getDefaultSize(BasicComboBoxUI.java:1208)
at javax.swing.plaf.basic.BasicComboBoxUI.getDisplaySize(BasicComboBoxUI.java:1291)
at com.sun.java.swing.plaf.motif.MotifComboBoxUI.getMinimumSize(MotifComboBoxUI.java:63)
at javax.swing.JComponent.getMinimumSize(JComponent.java:1203)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:427)
at javax.swing.BoxLayout.minimumLayoutSize(BoxLayout.java:270)
at java.awt.Container.minimumSize(Container.java:977)
at java.awt.Container.getMinimumSize(Container.java:961)
at javax.swing.JComponent.getMinimumSize(JComponent.java:1205)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:427)
at javax.swing.BoxLayout.minimumLayoutSize(BoxLayout.java:270)
at java.awt.Container.minimumSize(Container.java:977)
at java.awt.Container.getMinimumSize(Container.java:961)
at javax.swing.JComponent.getMinimumSize(JComponent.java:1205)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:427)
at javax.swing.BoxLayout.minimumLayoutSize(BoxLayout.java:270)
at java.awt.Container.minimumSize(Container.java:977)
at java.awt.Container.getMinimumSize(Container.java:961)
at javax.swing.JComponent.getMinimumSize(JComponent.java:1205)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:427)
at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:369)
at java.awt.Container.layout(Container.java:789)
at java.awt.Container.doLayout(Container.java:779)
at java.awt.Container.validateTree(Container.java:856)
at java.awt.Container.validate(Container.java:831)
at javax.swing.SwingUtilities.updateComponentTreeUI(SwingUtilities.java:1087)
at FileChooserDemo$OptionListener.actionPerformed(FileChooserDemo.java:477)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1639)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1692)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:412)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:267)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:261)
at java.awt.Component.processMouseEvent(Component.java:4862)
at java.awt.Component.processEvent(Component.java:4688)
at java.awt.Container.processEvent(Container.java:1308)
at java.awt.Component.dispatchEventImpl(Component.java:3460)
at java.awt.Container.dispatchEventImpl(Container.java:1370)
at java.awt.Component.dispatchEvent(Component.java:3327)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3251)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2963)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2920)
at java.awt.Container.dispatchEventImpl(Container.java:1344)
at java.awt.Window.dispatchEventImpl(Window.java:1338)
at java.awt.Component.dispatchEvent(Component.java:3327)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
%java -version
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b54)
Java HotSpot(TM) Client VM (build 1.4beta-B54, mixed mode)
ruchika.mehdiratta@Eng 2001-03-05