java.lang.IndexOutOfBoundsException: Invalid range

Coderanch | Paul Hayabusa | 4 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

    How to color JTable cell without a renderer?

    Coderanch | 4 years ago | Paul Hayabusa
    java.lang.IndexOutOfBoundsException: Invalid range

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      Invalid range

      at javax.swing.DefaultRowSorter.checkAgainstModel()
    2. Java RT
      AbstractTableModel.fireTableRowsUpdated
      1. javax.swing.DefaultRowSorter.checkAgainstModel(Unknown Source)
      2. javax.swing.DefaultRowSorter.rowsUpdated(Unknown Source)
      3. javax.swing.JTable.notifySorter(Unknown Source)
      4. javax.swing.JTable.sortedTableChanged(Unknown Source)
      5. javax.swing.JTable.tableChanged(Unknown Source)
      6. javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
      7. javax.swing.table.AbstractTableModel.fireTableRowsUpdated(Unknown Source)
      7 frames
    3. Unknown
      JTableDemo$AnalyzeButton$1.actionPerformed
      1. JTableDemo$MyColorModel.setColorAt(JTableDemo.java:143)
      2. JTableDemo$AnalyzeButton$1.actionPerformed(JTableDemo.java:61)
      2 frames
    4. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      2. javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      4. javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      6. java.awt.Component.processMouseEvent(Unknown Source)
      7. javax.swing.JComponent.processMouseEvent(Unknown Source)
      8. java.awt.Component.processEvent(Unknown Source)
      9. java.awt.Container.processEvent(Unknown Source)
      10. java.awt.Component.dispatchEventImpl(Unknown Source)
      11. java.awt.Container.dispatchEventImpl(Unknown Source)
      12. java.awt.Component.dispatchEvent(Unknown Source)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      14. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      15. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      16. java.awt.Container.dispatchEventImpl(Unknown Source)
      17. java.awt.Window.dispatchEventImpl(Unknown Source)
      18. java.awt.Component.dispatchEvent(Unknown Source)
      19. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      20. java.awt.EventQueue.access$200(Unknown Source)
      21. java.awt.EventQueue$3.run(Unknown Source)
      22. java.awt.EventQueue$3.run(Unknown Source)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      25. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      26. java.awt.EventQueue$4.run(Unknown Source)
      27. java.awt.EventQueue$4.run(Unknown Source)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      30. java.awt.EventQueue.dispatchEvent(Unknown Source)
      31. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      32. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      33. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      34. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      35. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      36. java.awt.EventDispatchThread.run(Unknown Source)
      36 frames