public void done() {
		int statesRemaining = answer.getStates().length
				- dfa.getStates().length, transitionsRemaining = answer
				.getTransitions().length
				- dfa.getTransitions().length;
		if (statesRemaining + transitionsRemaining != 0) {
			String states = statesRemaining == 0 ? "All the states are there.\n"
					: statesRemaining + " more state"
							+ (statesRemaining == 1 ? "" : "s")
							+ " must be placed.\n";
			String trans = transitionsRemaining == 0 ? "All the transitions are there.\n"
					: transitionsRemaining + " more transition"
							+ (transitionsRemaining == 1 ? "" : "s")
							+ " must be placed.\n";
			String message = "The DFA has not been completed.\n" + states
					+ trans;
			JOptionPane.showMessageDialog(view, message);
			return;
		}
		JOptionPane.showMessageDialog(view, "The DFA is fully built!\n"
				+ "It will now be placed in a new window.");
		FrameFactory.createFrame((FiniteStateAutomaton) dfa.clone());
	}