It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes JTable (Deleting row) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable (Deleting row)" Watch "JTable (Deleting row)" New topic

JTable (Deleting row)

vikas dhimole

Joined: Oct 09, 2004
Posts: 1
I have created a table, and I want to delete a row using a button.
I am using TableModelListener to identify the row which user editing and listselection listener for selected row.

when i am deleting a row using a button some exception is coming.That exception is ArrayIndexOutOfBoundsException.

i am not using any model for my table.

What I think problem is because I m using a TableModelListener which will fired whenever i want to delete a row.

please give me suggest to solve this problem,
thanks in advance
[ October 09, 2004: Message edited by: vikas dhimole ]
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535

[ October 09, 2004: Message edited by: Craig Wood ]
I agree. Here's the link:
subject: JTable (Deleting row)
It's not a secret anymore!