File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes How to refresh JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "How to refresh JTable" Watch "How to refresh JTable" New topic
Author

How to refresh JTable

Allen Chan
Ranch Hand

Joined: Jun 07, 2002
Posts: 64
Hi Ranchers,
When peforming a search, I guess I should use JTable to show the result, but how do I refresh it?
Thanks in advance.
ravindra janapreddy
Ranch Hand

Joined: Jan 30, 2001
Posts: 84
Hi Allen
You can refresh the JTable as follows :
table.repaint();
Ravindra


SCEA, SCBCD, SCWCD, SCJD, SCJP
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
You should send new data to table model, using a method defined in table model. Something like this:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to refresh JTable
 
Similar Threads
Refresing a JTable
JTable
Refresh JTable
About JTable
jtable