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 Delete row problem 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 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.
 
Consider Paul's rocket mass heater.
 
subject: JTable Delete row problem
 
Similar Threads
JTextfield data in JTable row
JTable
jtable
problem displaying jtable values
? JTable getColumnName