Hi Sam,
I'm not sure if I am correctly interpreting your question, but the
JTabbedPane has the "addChangeListener()" method. The
ChangeListener that you add, gets notified whenever you change the active tab of the "JTabbedPane".
Hope this helps.
Good Luck,
Avi.