public final synchronized JComponent getSelectedComponent() {
    // Workaround for JDK 6 bug
    final TabWrapper tabWrapper = tabbedPane.getTabCount() > 0 ? (TabWrapper)tabbedPane.getSelectedComponent() : null;
    return tabWrapper != null ? tabWrapper.getComponent() : null;
  }
public final synchronized JComponent getSelectedComponent()