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 Delete row problem 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 Delete row problem" Watch "JTable Delete row problem" New topic
Author

JTable Delete row problem

helen booths
Greenhorn

Joined: Apr 22, 2004
Posts: 1
Hello,
I have a problem with my jtable and i couldn't find anywhere the exact solution and i really need some help. The code i am using for the table is the following:

When i try to call the removeRow like this:

i get the error cannot resolve symbol for method tm.removeRow(int);
How can i add my own methods in the model and use them?
Is their any other way of deleting a row using the above tablemodel that i have?
I will really appreciate any help.
Thank you
Fuqiang Zhao
Greenhorn

Joined: Jan 07, 2004
Posts: 24
The DefaultTableModel in javax.swing.table package provides this feature.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable Delete row problem