@Override
	public void menuSelected(MenuEvent event) {
		JMenu menu = (JMenu) event.getSource();
		for (Component component : menu.getMenuComponents()) {
			if (component instanceof JMenuItem) {
				JMenuItem item = (JMenuItem) component;
				Action action = item.getAction();
				if (action instanceof Command) {
					((Command) action).adjust();
				}
			}
		}
	}