if (tabbedPane.getSelectedComponent().equals(hcb))
if (tabbedPane.getSelectedComponent().equals(hcb)) {
      public void stateChanged(ChangeEvent e) {        if (tabbedPane.getSelectedComponent().equals(hcb))          findMenu.setEnabled(true);        else          findMenu.setEnabled(false);      }