if (changed) { setArmed(true); fireMenuSelected();  int x = 0; int y = 0; if (menuLocation == null) {   if (isTopLevelMenu()) y = this.getHeight(); else x = this.getWidth();  getPopupMenu().show(this, x, y); } else getPopupMenu().show(this, menuLocation.x, menuLocation.y); }  else { fireMenuDeselected(); popupMenu.setVisible(false); setArmed(false); }
  public void menuSelectionChanged(boolean changed)  {  }