• Post Reply Bookmark Topic Watch Topic
  • New Topic

Updating JTables

 
John Martinson
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know of a better way to update the contents of a Jtable?


John Martinson
The more I learn the more I realize I don't know anything --some guy
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's. . . interesting.
You should spend some time with the Java Tutorial page on How to Use Tables. There's the table then there's the table model. You don't mess with the table itself once it's displayed. You make changes to the table model and use events to let the table know things have changed.
 
Anand Karia
Ranch Hand
Posts: 156
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Joe Ess and this link is the best java tutorial!

Have a deep look at the site

.
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!