tabPane.setSelectedComponent(component);
} visibleComponent = component;
  protected void setVisibleComponent(Component component)  {    component.setVisible(true);    tabPane.setSelectedComponent(component);  }