public void doAll() {
		// TODO Auto-generated method stub
		switch (currentStep) {
		case CREATE_SINGLE_TRAPSTATE:
			JOptionPane.showMessageDialog(frame,
				"Just create a state.\nIt's not too difficult.",
				"Create the State", JOptionPane.ERROR_MESSAGE);
			return;
		}
		for (Integer key:myNeededTransitionMap.keySet())
		{
			ArrayList <String> list=myNeededTransitionMap.get(key);
			for (String terminal: list)
			{
				FSATransition t=new FSATransition(myStateMap.get(key), myTrapState, terminal);
				automaton.addTransition(t);
				frame.repaint();
			}
		}
		currentStep=FINISHED;
		nextStep();
		return;
	}