-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
6
-
x86
-
linux_redhat_3.0
Bug Info:
=========
Throwing ArrayIndexOutOfBoundException while selecting file types in open dailog with motif L&F and Gnome session.But its a inconsistant behavior.
JDK info:
=========
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b42)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b42, mixed mode, sharing)
Steps to reproduce
==================
1. Open FileChooserDemo(JAVA_HOME/demo/jfc/FileChooser) demo application.
${JAVA_HOME}/bin/java -jar ${JAVA_HOME$}/demo/jfc/FileChooserDemo/FileChooserDemo.jar
2. Choose all filter controls.
3. Choose motif L&F option.
4. Select Enable Dragging option.
5. Click on ShowFileChooser Button.
6. Select '*' in filter combobox.
7. Drag a file from Files List Box and dropped in Enter file name text box.
8. Select any file type either jpeg or gif.
Expected Results:
=================
In Files List Box Files has to filter based on slected file type criteria.
Actual Results:
===============
Filter is not working properly.There is some inconsistent behavior.
Bug Details
============
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: 3 >= 2
at java.util.Vector.elementAt(Vector.java:432)
at com.sun.java.swing.plaf.motif.MotifFileChooserUI$MotifFileListModel.getElementAt(MotifFileChooserUI.java:654)
at javax.swing.JList.getSelectedValue(JList.java:1834)
at javax.swing.plaf.basic.BasicFileChooserUI$Handler.valueChanged(BasicFileChooserUI.java:497)
at javax.swing.JList.fireSelectionValueChanged(JList.java:1337)
at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1351)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
at javax.swing.DefaultListSelectionModel.insertIndexInterval(DefaultListSelectionModel.java:566)
at javax.swing.plaf.basic.BasicListUI$Handler.intervalAdded(BasicListUI.java:2402)
at javax.swing.AbstractListModel.fireIntervalAdded(AbstractListModel.java:130)
at com.sun.java.swing.plaf.motif.MotifFileChooserUI$MotifFileListModel.intervalAdded(MotifFileChooserUI.java:658)
at javax.swing.AbstractListModel.fireIntervalAdded(AbstractListModel.java:130)
at javax.swing.plaf.basic.BasicDirectoryModel.access$700(BasicDirectoryModel.java:5)
at javax.swing.plaf.basic.BasicDirectoryModel$DoChangeContents.run(BasicDirectoryMdel.java:456)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:590)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:27)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:175)
at java.awt.Dialog$1.run(Dialog.java:960)
at java.awt.Dialog.show(Dialog.java:998)
at javax.swing.JFileChooser.showDialog(JFileChooser.java:718)
at FileChooserDemo.actionPerformed(FileChooserDemo.java:386)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1863)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2183)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jaa:234)
at java.awt.Component.processMouseEvent(Component.java:5921)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5686)
at java.awt.Container.processEvent(Container.java:1967)
at java.awt.Component.dispatchEventImpl(Component.java:4360)
at java.awt.Container.dispatchEventImpl(Container.java:2025)
at java.awt.Component.dispatchEvent(Component.java:4194)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4229)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3893)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3823)
at java.awt.Container.dispatchEventImpl(Container.java:2011)
at java.awt.Window.dispatchEventImpl(Window.java:2012)
at java.awt.Component.dispatchEvent(Component.java:4194)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:592)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:27)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:17)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:166)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:119)
###@###.### 2005-06-30 13:57:04 GMT
=========
Throwing ArrayIndexOutOfBoundException while selecting file types in open dailog with motif L&F and Gnome session.But its a inconsistant behavior.
JDK info:
=========
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b42)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b42, mixed mode, sharing)
Steps to reproduce
==================
1. Open FileChooserDemo(JAVA_HOME/demo/jfc/FileChooser) demo application.
${JAVA_HOME}/bin/java -jar ${JAVA_HOME$}/demo/jfc/FileChooserDemo/FileChooserDemo.jar
2. Choose all filter controls.
3. Choose motif L&F option.
4. Select Enable Dragging option.
5. Click on ShowFileChooser Button.
6. Select '*' in filter combobox.
7. Drag a file from Files List Box and dropped in Enter file name text box.
8. Select any file type either jpeg or gif.
Expected Results:
=================
In Files List Box Files has to filter based on slected file type criteria.
Actual Results:
===============
Filter is not working properly.There is some inconsistent behavior.
Bug Details
============
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: 3 >= 2
at java.util.Vector.elementAt(Vector.java:432)
at com.sun.java.swing.plaf.motif.MotifFileChooserUI$MotifFileListModel.getElementAt(MotifFileChooserUI.java:654)
at javax.swing.JList.getSelectedValue(JList.java:1834)
at javax.swing.plaf.basic.BasicFileChooserUI$Handler.valueChanged(BasicFileChooserUI.java:497)
at javax.swing.JList.fireSelectionValueChanged(JList.java:1337)
at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1351)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
at javax.swing.DefaultListSelectionModel.insertIndexInterval(DefaultListSelectionModel.java:566)
at javax.swing.plaf.basic.BasicListUI$Handler.intervalAdded(BasicListUI.java:2402)
at javax.swing.AbstractListModel.fireIntervalAdded(AbstractListModel.java:130)
at com.sun.java.swing.plaf.motif.MotifFileChooserUI$MotifFileListModel.intervalAdded(MotifFileChooserUI.java:658)
at javax.swing.AbstractListModel.fireIntervalAdded(AbstractListModel.java:130)
at javax.swing.plaf.basic.BasicDirectoryModel.access$700(BasicDirectoryModel.java:5)
at javax.swing.plaf.basic.BasicDirectoryModel$DoChangeContents.run(BasicDirectoryMdel.java:456)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:590)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:27)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:175)
at java.awt.Dialog$1.run(Dialog.java:960)
at java.awt.Dialog.show(Dialog.java:998)
at javax.swing.JFileChooser.showDialog(JFileChooser.java:718)
at FileChooserDemo.actionPerformed(FileChooserDemo.java:386)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1863)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2183)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jaa:234)
at java.awt.Component.processMouseEvent(Component.java:5921)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5686)
at java.awt.Container.processEvent(Container.java:1967)
at java.awt.Component.dispatchEventImpl(Component.java:4360)
at java.awt.Container.dispatchEventImpl(Container.java:2025)
at java.awt.Component.dispatchEvent(Component.java:4194)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4229)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3893)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3823)
at java.awt.Container.dispatchEventImpl(Container.java:2011)
at java.awt.Window.dispatchEventImpl(Window.java:2012)
at java.awt.Component.dispatchEvent(Component.java:4194)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:592)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:27)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:17)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:166)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:119)
###@###.### 2005-06-30 13:57:04 GMT