super.setVisible(false);
MenuSelectionManager menuSelectionManager = MenuSelectionManager.defaultManager(); javax.swing.MenuElement[] menuElements = menuSelectionManager.getSelectedPath(); for (int i = 0; i < menuElements.length; i++) { if (menuElements[i] == this) { menuSelectionManager.clearSelectedPath(); break; } } comboBox.repaint();
  public void hide()  {    super.setVisible(false);  }