This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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 agree. Here's the link:
subject: JTable Delete row problem
Similar Threads
? JTable getColumnName
JTextfield data in JTable row
problem displaying jtable values