*
The moose likes Swing / AWT / SWT and the fly likes Refreshing JTable at run time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Refreshing JTable at run time" Watch "Refreshing JTable at run time" New topic
Author

Refreshing JTable at run time

Muhammad Afzal
Greenhorn

Joined: Jul 25, 2001
Posts: 1
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

Joined: Jul 01, 2001
Posts: 10
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Refreshing JTable at run time
 
Similar Threads
JTable
JTable
JTable
JTable
jtable