I have a panel inside a jtabbed pane that I only want to refresh if the tab is visible. I tried, isShowing(), isDisplayable() and isVisible() and none of them seem to work as they check whether or not the component COULD be showing, displayable or visible.
Preferably from the context of the JPanel inside of the JTabbedPane, how do I tell if the tab the JPanel is in, is the active tab?