public void actionPerformed(ActionEvent e) {
			boolean check = true;
			List<List<String>> list = new ArrayList<List<String>>(nary.values());
			for (int i = 0; i < list.size(); i++) {
				if (list.get(i).contains(rootString))
					if (!list.get(i).get(0).equals(rootString))
						check = false;
			}

			if (check == false) {
				JOptionPane
						.showMessageDialog(
								choice,
								rootString
										+ " must be the root of the n-ary relation, because it is the most important entity",
								"ERROR", JOptionPane.ERROR_MESSAGE);
			} else {
				try {
					r.setOrders(nary);
					Map<String, ErdNode> rootMap = r.getERDEntityTypes();
					r.buildORASS(rootMap.get(rootString));
					main.getMainFrame().setContentPane(
							choice.getTranslatePane());
					main.getMainFrame().validate();
				} catch (MainException me) {
					JOptionPane.showMessageDialog(choice, me.getMessage(),
							"ERROR", JOptionPane.ERROR_MESSAGE);
				}
			}

		}