JTable ArrayIndexOutOfBoundsException
843806Apr 19 2008 — edited Apr 20 2008Hi all,
I've got a JTable populated with data from a mysql database.
the problem is that i cannot remove any rows since i will keep getting the :
where the first 0 in the 0>=0 is the row i try to delete.
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.removeElementAt(Unknown Source)
the strange this is that i can System.out in a for loop that goes for the length of the model.rowCount()
and it writes all the row's values.
I use a DefaultTableModel.
Any help would be appreciated.
Wiz