I have a superclass, guiModule, that is a super class for several panes I'm
using that are in a JTabbedPane. In the superclass I have specified that
it implements FocusListener and have the focusGained() method in it. I
would have thought that when I selected a particular tab on the
JTabbedPane, that particular class would have the focusGained() method
called, but that isn't happening.
What do I use or what kind of listener do I need so each panel can detect
when it is selected by clicking on the corresponding tab?
Thanks!
Hal
Michael Dunn - 25 May 2007 19:36 GMT
>I have a superclass, guiModule, that is a super class for several panes I'm
> using that are in a JTabbedPane. In the superclass I have specified that
[quoted text clipped - 5 lines]
> What do I use or what kind of listener do I need so each panel can detect
> when it is selected by clicking on the corresponding tab?
ChangeListener()