java.lang.IndexOutOfBoundsException: Invalid index

Coderanch | Robin Sharma | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Bug in JFileChooser?

    Coderanch | 9 years ago | Robin Sharma
    java.lang.IndexOutOfBoundsException: Invalid index

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      Invalid index

      at javax.swing.DefaultRowSorter.convertRowIndexToModel()
    2. Java RT
      BasicListUI$Actions.actionPerformed
      1. javax.swing.DefaultRowSorter.convertRowIndexToModel(DefaultRowSorter.java:497)
      2. sun.swing.FilePane$SortableListModel.getElementAt(FilePane.java:525)
      3. javax.swing.JList.getSelectedValue(JList.java:2276)
      4. javax.swing.plaf.basic.BasicFileChooserUI$Handler.valueChanged(BasicFileChooserUI.java:500)
      5. javax.swing.JList.fireSelectionValueChanged(JList.java:1765)
      6. javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1779)
      7. javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
      8. javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:137)
      9. javax.swing.DefaultListSelectionModel.setValueIsAdjusting(DefaultListSelectionModel.java:668)
      10. javax.swing.JList.setValueIsAdjusting(JList.java:2110)
      11. javax.swing.plaf.basic.BasicListUI$Actions.actionPerformed(BasicListUI.java:1925)
      11 frames