This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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 ]
wood burning stoves
subject: JTable (Deleting row)
Similar Threads
problem in updating a row in JDBC
problem in validation during deleting a record from DB
HibernateException while using native sql query
How to delete a particular row from a dynamic table in a JSP form
delete a non existing row