title: How to check whether the tab is active or not in JTabbedPane?
body: <p>How can I check whether a tab in a JTabbedPane instance is active or not, in the class of the tab (nested class) itself and not in the enclosing class?  </p>
  
  <p>I know that there is a method <code>booloean isEnabledAt(int index);</code> but this method can only be called in the enclosing class. Whereas I want to check whether the tab is currently selected within the tab class itself (nested class).  </p>
  
  <p>Can anybody please suggest how?</p>