Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable values automatically update  RSS feed

 
Reza Mochamad Diannagara
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

how to make jtable values automatically change if there is change in the table?
 
raja ramesh
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u have to extend the AbstractTableModel or DefaultTableModel ..u got the

solution ??
 
Brian Cole
Author
Ranch Hand
Posts: 949
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Reza Mochamad Diannagara:
how to make jtable values automatically change if there is change in the table?


You don't give many details, but perhaps this similar thread will be useful.
 
Reza Mochamad Diannagara
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

sorry to takes long time to reply.

heres the detail:
- first i make a jtable that show some data from database.
- it's extends AbstractTableModel

it's only update data on database if there is any changes on the jtable.
all i want is the jtable will always update it's data, if there's any changes in the database. how to do that???

regards...
 
Rob Spoor
Sheriff
Posts: 21095
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Call on of the fire* methods. If only one cell changes the fireTableCellUpdated method would be the one to use.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!