private void nextStep()
	{
		switch (currentStep) 
		{
		case CREATE_SINGLE_TRAPSTATE:
			currentStep = CREATE_SINGLE_TRAPSTATE;
			mainStep.setText("Make Single Trap State");
			detailStep
					.setText("Create a new state to make a single trap state.");
			if (automaton.getFinalStates().length != 1
					|| automaton.getFinalStates()[0] == automaton
							.getInitialState()) {
				return;
			}
			return;
		case TRANSITIONS_TO_TRAPSTATE:
			if (myReadSets==null)
				determineRemainingTransition();
			mainStep.setText("Adding Transitions    Readable String : "+myReadSets);
			detailStep
					.setText("Put transitions from all states to the trap state.   "+remaining+" transitions must be added");
			// We know we're done when...
			if (drawer.numberSelected() != 0)
				return;
			return;

		case FINISHED:
			mainStep.setText("Adding a Trap State and Transitions is Finished!");
			detailStep
			.setText("");
			JOptionPane.showMessageDialog(frame, "The DFA is now complete!\n"
					+ "It will now be placed in a new window.");
			FrameFactory.createFrame((FiniteStateAutomaton) automaton.clone());
			return;
		}
	}