How to check whether the tab is active or not in JTabbedPane?

Posted by Supereme on Stack Overflow See other posts from Stack Overflow or by Supereme
Published on 2010-05-30T05:44:25Z Indexed on 2010/05/30 5:52 UTC
Read the original article Hit count: 223

Filed under:
|
|

Hi,
How to check whether a tab in JTabbedPane instance is active or not, in the class of the tab(nested class) itself and not in the enclosing class?
I know that there is a method 'booloean isEnabledAt(int index)'; but this method can only be called in the enclosing class whereas I want to check whether the tab is currently selected or not in the tab class (nested class) itself.
Can anybody please suggest me something?
Thank you!

© Stack Overflow or respective owner

Related posts about java

Related posts about swing