public boolean action(Event e, Object args) {
		
		if (e.target == asciiButton) {
			pathFinding(getASCII(codeEntry.getText() + ".txt"));

		} else if (e.target == dtmfButton) {
			System.out.println("dtmf : " + obj.dtmf );
			pathFinding(obj.dtmf);
			

		} else if (e.target == codeEntryButton) {
			pathFinding("*#*#*#*#" + codeEntry.getText() + "*#");

		} else if (e.target == example1Button) {
			pathFinding("*#*#*#*#C002B003B012D068B078B090C118*069*015*045*084*114*093*123*149*#");

		} else if (e.target == example2Button) {
			pathFinding("*#*#*#*#A057A064D026B001D132D100A137*003*033*045*117*060*114*075*149*#");

		} else if (e.target == connectButton) {
			connect((String) portList.getSelectedItem());

		} else if (e.target == sendMoveButton) {
			MoveType movetype = MoveType.valueOf(moveTypeList.getSelectedItem().toString());
			int num = Integer.parseInt(moveNumList.getSelectedItem().toString());
			Move move = new Move(movetype, num, 0);
			
			callAndResponse("rst", "ok");
			callAndResponse(move.moveString, "ok");
			callAndResponse("go", "go");

		} else if (e.target == sendRouteButton) {
			sendRoute();
			
		}
		return true;
	}