I have not written any code right yet but... I am wondering how do I
detect when a tab has been selected and which tab that has been selected
in a JTabbedPane?

Signature
Thanks in Advance...
IchBin
__________________________________________________________________________
'The meeting of two personalities is like the contact of two chemical
substances: if there is any reaction, both are transformed.'
- Carl Gustav Jung, (1875-1961), psychiatrist and psychologist
> I have not written any code right yet but... I am wondering how do I
> detect when a tab has been selected and which tab that has been selected
> in a JTabbedPane?
See the docs:
Component JTabbedPane.getSelectedComponent()
int JTabbedPane.getSelectedIndex()
JTabbedPane.addChangeListener(ChangeListener)
Paul.
IchBin - 31 Dec 2004 08:51 GMT
>> I have not written any code right yet but... I am wondering how do I
>> detect when a tab has been selected and which tab that has been
[quoted text clipped - 6 lines]
>
> Paul.
Thanks Paul!
IchBin
__________________________________________________________________________
'The meeting of two personalities is like the contact of two chemical
substances:
if there is any reaction, both are transformed.'
- Carl Gustav Jung, (1875-1961), psychiatrist and psychologist