public void actionPerformed(ActionEvent e) {
		String selected = e.getActionCommand();
		if (selected == "ダイアログ") {
			displayDialog();
		} else if(selected == "exit") {
			Pref.saveLayout(getX(), getY());
			Pref.save(tp.getBColor(), tp.getSColor(), tp.getFontName(), String.valueOf(tp.getFontSize()));
			System.exit(0);
		} else if(selected == "アナログ") {
			tp.setDigitalFlag(false);
		} else if(selected == "デジタル") {
			tp.setDigitalFlag(true);
		} else if (e.getActionCommand() == "OK") {
			ok(dlg);
			dlg.setVisible(false);
		} else if (e.getActionCommand() == "Cancel") {
			dlg.setVisible(false);
		} else
			System.out.println(e.getActionCommand());
	}