• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refreshing JTable at run time

 
Muhammad Afzal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all
I have populated jtable from database while creating its object like
DBAccess db = new DBAccess();
JTable table = new JTable(db.getData(),db.getColumns());
but now I need to refresh this table at run time . Can any body send me solution.
Thanks for your time.
Afzal
 
shalina gokarna
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You can create a Refresh Button on the same page on which you are displaying the JTable.On the click of that JButton,a Select query should be executed with the help of which you can display the new records also in the JTable.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic