return getComponentAt(getSelectedIndex());
int selectedIndex = getSelectedIndex(); Component selected = null; if (selectedIndex >= 0) selected = getComponentAt(selectedIndex); return selected;
  public Component getSelectedComponent()  {    return getComponentAt(getSelectedIndex());  }