SHARE
TWEET

error JTable

a guest Mar 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1
  2.     at java.util.Vector.elementData(Vector.java:737)
  3.     at java.util.Vector.elementAt(Vector.java:480)
  4.     at javax.swing.table.DefaultTableModel.getValueAt(DefaultTableModel.java:648)
  5.     at javax.swing.JTable.getValueAt(JTable.java:2720)
  6.     at testlist.TableTestFinal.valueChanged(TableTestFinal.java:118)
  7.     at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
  8.     at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
  9.     at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
  10.     at javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultListSelectionModel.java:677)
  11.     at javax.swing.JTable.tableRowsDeleted(JTable.java:4515)
  12.     at javax.swing.JTable.tableChanged(JTable.java:4418)
  13.     at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:296)
  14.     at javax.swing.table.AbstractTableModel.fireTableRowsDeleted(AbstractTableModel.java:261)
  15.     at testlist.TableTestFinal$2.actionPerformed(TableTestFinal.java:148)
  16.     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
  17.     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
  18.     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
  19.     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
  20.     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
  21.     at java.awt.Component.processMouseEvent(Component.java:6539)
  22.     at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
  23.     at java.awt.Component.processEvent(Component.java:6304)
  24.     at java.awt.Container.processEvent(Container.java:2239)
  25.     at java.awt.Component.dispatchEventImpl(Component.java:4889)
  26.     at java.awt.Container.dispatchEventImpl(Container.java:2297)
  27.     at java.awt.Component.dispatchEvent(Component.java:4711)
  28.     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
  29.     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
  30.     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
  31.     at java.awt.Container.dispatchEventImpl(Container.java:2283)
  32.     at java.awt.Window.dispatchEventImpl(Window.java:2746)
  33.     at java.awt.Component.dispatchEvent(Component.java:4711)
  34.     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
  35.     at java.awt.EventQueue.access$500(EventQueue.java:97)
  36.     at java.awt.EventQueue$3.run(EventQueue.java:709)
  37.     at java.awt.EventQueue$3.run(EventQueue.java:703)
  38.     at java.security.AccessController.doPrivileged(Native Method)
  39.     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
  40.     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
  41.     at java.awt.EventQueue$4.run(EventQueue.java:733)
  42.     at java.awt.EventQueue$4.run(EventQueue.java:731)
  43.     at java.security.AccessController.doPrivileged(Native Method)
  44.     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
  45.     at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
  46.     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
  47.     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
  48.     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
  49.     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
  50.     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
  51.     at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
  52. BUILD SUCCESSFUL (total time: 35 seconds)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top