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

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

		mode = source.getText();
		switch (mode) {
		case "None":
			setVisible(false);
			break;
		case "Single":
			outCoupler.jitterMode(false);
			setVisible(true);
			break;
		case "Multiple":
			setVisible(true);
			break;
		case "JitterMode":	
			outCoupler.jitterMode(true);
			setVisible(true);
			break;
		case "JitterRecovery":
			outCoupler.jitterMode(true);
			setVisible(true);
//			drawThread.run();
			break;
		}

		if (needRepaint) {
			// Point point = new Point(width/2, height/2);
			// setPoint(point);
			repaint();
		}
	}