• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to refresh all tabs in a JTabbedPane?

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have sort of designed a ChangedListener like this, but how can I know which class
the tab belongs to?
Just say the tabs can contain customer sales info, or employee info or product info, each in its own class (JPanels)
I want to refresh all of those tabs whatever a change happens. What is the easiest way to achieve that?
I mean, how to cast the various tabs to the correct JPanels so that I can call on the database module to refresh that tab?
Thanks
Jack

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!