public void actionPerformed(ActionEvent e) {
		JMenuItem source = (JMenuItem) (e.getSource());

		boolean needRepaint = !mode.equals(source.getText());

		mode = source.getText();
		switch (mode) {
//		case "None":
//			drawPanel.setVisible(false);
//			break;
//		case "Single":
//			outCoupler.jitterMode(false);
//			drawPanel.setVisible(true);
//			break;
//		case "Multiple":
//			drawPanel.setVisible(true);
//			break;
		case "TelepointerShow":
//			outCoupler.jitterMode(false);
			drawPanel.setVisible(true);
			break;
		case "TelepointerHide":
			drawPanel.setVisible(false);
			break;
		case "JitterON":
			outCoupler.jitterMode(true);
//			drawPanel.setVisible(true);
			break;
		case "JitterOFF":
			outCoupler.jitterMode(false);
//			drawPanel.setVisible(true);
			break;
		case "JitterRecovery":
			outCoupler.jitterMode(true);
//			drawPanel.setVisible(true);
			break;
		}

		if (needRepaint) {
			drawPanel.repaint();
		}
	}