This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Row Deletion  RSS feed

 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
is it possible to delete a row of a jtable ?? i mean deleting not hiding it ..
thanks
raj.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raj,
If I understand you correctly, in order to delete a row from a JTable, you need to delete the row data from the TableModel associated with that JTable. If you are using the DefaultTableModel (in package "javax.swing.table"), then that class already has a method for deleting a row. Check the javadocs for more details.
Hope this helps.
Good Luck,
Avi.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!