-
Bug
-
Resolution: Won't Fix
-
P3
-
6u2
-
x86
-
windows_2000
Bug Info:
=========
The issue which is mentioned below is happening only with PIT build(6u2-b01) and its not happening with 6u1-b04 and b104.
I found this issue on win 2k professional machine and its not happening on winxp machine.
Once it throws the exception filechooser is not functioning well.for example if you click on any folder its not opening.
Follow the below steps to reproduce the issue.
1. Open FileChooserDemo application.
2. Choose either windows or metal laf.
3. Click on ShowFileChooser Button.
4. Click cancel button.
5. Choose all filter controls in the parent frame.
6. Click on ShowFileChooser Button.
7. Choose MyComputer folder by either clicking icon in left side panel or choose from ComboBox.
8. Select the detail view icon.
9. Arrange the folder/files in descending order by clicking 'size' header in a table.
10. Choose Desktop folder.
11. Select the different file type.
After follow the above steps you can see the below exception in the console.
Exception Details:
==================
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: 5
at javax.swing.DefaultRowSorter.convertRowIndexToModel(DefaultRowSorter.
java:501)
at sun.swing.FilePane$SortableListModel.getElementAt(FilePane.java:525)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java
:1341)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI
.java:1292)
at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.j
ava:2605)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
ectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
ectionModel.java:147)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
ectionModel.java:194)
at javax.swing.DefaultListSelectionModel.setAnchorSelectionIndex(Default
ListSelectionModel.java:719)
at sun.swing.FilePane.clearSelection(FilePane.java:1538)
at sun.swing.FilePane.setFileSelected(FilePane.java:1389)
at sun.swing.FilePane$DelayedSelectionUpdater.run(FilePane.java:1120)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:177)
at java.awt.Dialog$1.run(Dialog.java:1039)
at java.awt.Dialog$3.run(Dialog.java:1091)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1089)
at javax.swing.JFileChooser.showDialog(JFileChooser.java:723)
at FileChooserDemo.actionPerformed(FileChooserDemo.java:394)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:19
95)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242
)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
=========
The issue which is mentioned below is happening only with PIT build(6u2-b01) and its not happening with 6u1-b04 and b104.
I found this issue on win 2k professional machine and its not happening on winxp machine.
Once it throws the exception filechooser is not functioning well.for example if you click on any folder its not opening.
Follow the below steps to reproduce the issue.
1. Open FileChooserDemo application.
2. Choose either windows or metal laf.
3. Click on ShowFileChooser Button.
4. Click cancel button.
5. Choose all filter controls in the parent frame.
6. Click on ShowFileChooser Button.
7. Choose MyComputer folder by either clicking icon in left side panel or choose from ComboBox.
8. Select the detail view icon.
9. Arrange the folder/files in descending order by clicking 'size' header in a table.
10. Choose Desktop folder.
11. Select the different file type.
After follow the above steps you can see the below exception in the console.
Exception Details:
==================
Exception occurred during event dispatching:
java.lang.ArrayIndexOutOfBoundsException: 5
at javax.swing.DefaultRowSorter.convertRowIndexToModel(DefaultRowSorter.
java:501)
at sun.swing.FilePane$SortableListModel.getElementAt(FilePane.java:525)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java
:1341)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI
.java:1292)
at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.j
ava:2605)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
ectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
ectionModel.java:147)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSel
ectionModel.java:194)
at javax.swing.DefaultListSelectionModel.setAnchorSelectionIndex(Default
ListSelectionModel.java:719)
at sun.swing.FilePane.clearSelection(FilePane.java:1538)
at sun.swing.FilePane.setFileSelected(FilePane.java:1389)
at sun.swing.FilePane$DelayedSelectionUpdater.run(FilePane.java:1120)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:177)
at java.awt.Dialog$1.run(Dialog.java:1039)
at java.awt.Dialog$3.run(Dialog.java:1091)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1089)
at javax.swing.JFileChooser.showDialog(JFileChooser.java:723)
at FileChooserDemo.actionPerformed(FileChooserDemo.java:394)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:19
95)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242
)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322
)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
- relates to
-
JDK-6532180 JFileChooser throws exception after changing file filter at sorted files
-
- Closed
-