MenuSelectionManager manager) {  }
MenuSelectionManager manager) { switch (event.getID()) { case MouseEvent.MOUSE_CLICKED: doClick(); break; case MouseEvent.MOUSE_ENTERED: if (event.getSource() instanceof JMenuItem) { JMenuItem item = (JMenuItem) event.getSource(); ButtonModel model = item.getModel();  if (item.isRolloverEnabled()) model.setRollover(true);  if (model.isPressed() && (event.getModifiers() & InputEvent.BUTTON1_MASK) != 0) model.setArmed(true); else model.setArmed(false); } break; case MouseEvent.MOUSE_EXITED: if (event.getSource() instanceof JMenuItem) { JMenuItem item = (JMenuItem) event.getSource(); ButtonModel model = item.getModel(); if (item.isRolloverEnabled()) model.setRollover(false); model.setArmed(false); } break; case MouseEvent.MOUSE_PRESSED: if (event.getSource() instanceof JMenuItem) { if ((event.getModifiers() & InputEvent.BUTTON1_MASK) != 0) { model.setArmed(true); model.setPressed(true); } } break; case MouseEvent.MOUSE_RELEASED: if (event.getSource() instanceof JMenuItem) { JMenuItem item = (JMenuItem) event.getSource(); ButtonModel model = item.getModel(); if ((event.getModifiers() & InputEvent.BUTTON1_MASK) != 0) { model.setPressed(false); model.setArmed(false); manager.clearSelectedPath(); } } break; case MouseEvent.MOUSE_MOVED: break; case MouseEvent.MOUSE_DRAGGED: MenuDragMouseEvent e = new MenuDragMouseEvent((Component) event .getSource(), event.getID(), event.getWhen(), event.getModifiers(), event.getX(), event.getY(), event.getClickCount(), event.isPopupTrigger(), path, manager); processMenuDragMouseEvent(e); break; } }
	public void processMouseEvent(MouseEvent event, MenuElement[] path,			MenuSelectionManager manager) {		// TODO	} // processMouseEvent()