File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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 :

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:
I agree. Here's the link:
subject: How to refresh JTable
It's not a secret anymore!