File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable (Deleting row)" Watch "JTable (Deleting row)" New topic
Author

JTable (Deleting row)

vikas dhimole
Greenhorn

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: http://aspose.com/file-tools
 
subject: JTable (Deleting row)