aspose file tools*
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
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