public void actionPerformed(ActionEvent e) {
			if (undoManager.canUndo()) {
				try {
					undoManager.undo();
				} catch (CannotUndoException ex) {
					ex.printStackTrace();
				}
			}
			updateState();
			((RedoAction) getAction(REDO)).updateState();
		}