File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Refresh in Tabbed Pane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Refresh in Tabbed Pane" Watch "Refresh in Tabbed Pane" New topic

Refresh in Tabbed Pane

Saket Barve
Ranch Hand

Joined: Dec 19, 2002
Posts: 229

I have a JTabbedPane with several tabs. When I switch between the tabs, I notice that the data is not fetched from the database. In other words, modified data is not reflected when I revisit the tab. On restarting my applet, however, the changes are visible.

How can I ensure a database hit on clicking of any of the tabs?

Tim LeMaster
Ranch Hand

Joined: Aug 31, 2006
Posts: 226
Take a look at ChangeListener.
[ September 16, 2006: Message edited by: Tim LeMaster ]
I agree. Here's the link:
subject: Refresh in Tabbed Pane
It's not a secret anymore!