Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

JTable Delete row problem

helen booths

Joined: Apr 22, 2004
Posts: 1
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

Joined: Jan 07, 2004
Posts: 24
The DefaultTableModel in javax.swing.table package provides this feature.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JTable Delete row problem
It's not a secret anymore!