Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable ArrayIndexOutOfBoundsException

843806Apr 19 2008 — edited Apr 20 2008
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 18 2008
Added on Apr 19 2008
6 comments
1,073 views