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?