Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updating bound table when model changes

Status
Not open for further replies.

pointertowhat

Programmer
Jan 13, 2009
22
US
I have a Jtable thats bound to a DB table. Sometime the database can be updated and the model of the table changes but the displayed data doesn't.

At the moment I have to cause a manual refresh by unbinding the table then rebinding it, which seems to me to be a really ugly solution.

Is there a better way?

p.s. I'm using netbeans which creates a query object for the db table and a result list object that the table binds to. The result list updates automatically when the db data changes.
 
He's not really solving the problem - all his refresh method does is delete everything from the List and then put it all back, in a way not really different from unbinding the table and then rebinding it.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top