wood burning stoves 2.0*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Refresh in Tabbed Pane" Watch "Refresh in Tabbed Pane" New topic
Author

Refresh in Tabbed Pane

Saket Barve
Ranch Hand

Joined: Dec 19, 2002
Posts: 229
Hello,

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?

Thanks,
Saket
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: http://aspose.com/file-tools
 
subject: Refresh in Tabbed Pane
 
Similar Threads
Caching results on a tab based web page
Struts 1 - How to display data from different databases on one click?
Can tabs in JTabbedPane be oriented vertically?
Tabs within one browser share Session, but I want to capture close and time out event for each tab
JTabbedPane-How to tell if changes were made before switching tabs