public void actionPerformed( ActionEvent e ) 
	{
		String s;
		s = e.getActionCommand();
		
		switch( state )
		{
		case 0:
			inputState0(s);
			break;
		case 1:
			inputState1(s);
			break;
		case 2:
			inputState2(s);
			break;
		case 3:
			inputState3(s);
			break;
		case 4:
			inputState4(s);
			break;
		case 5:
			inputState5(s);
			break;
		default:
			System.out.println( "Unknow state error!" );
			System.exit(1);
		}
	}