public void actionPerformed(ActionEvent e) {
		String actionCommand = e.getActionCommand();
		if (actionCommand.equals("Edit class name"))
			dialogues.editClassName();
		else if (actionCommand.equals("Delete this class")) {
			dialogues.deleteClass();
		} else if (actionCommand.equals("Delete a variable")) {
			dialogues.deleteVariable();
		} else if (actionCommand.equals("Add new variable")) {
			dialogues.addVariable();
		} else if (actionCommand.equals("Delete a method")) {
			dialogues.deleteMethod();
		} else if (actionCommand.equals("Add new method")) {
			dialogues.addMethod();
		} else if (actionCommand.equals("Add constructor")) {
			dialogues.addConstructor();
		} else if (actionCommand.equals("Add main method")) {
			dialogues.addMainMethod();
		} else
			System.out.println("Error. ");
	}