Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refresh in Tabbed Pane

 
Saket Barve
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at ChangeListener.
[ September 16, 2006: Message edited by: Tim LeMaster ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic