public void selectObject(MouseEvent evt) {
		Object obj = window.getPetriNetGraph().getObjectPosition(evt.getX(), evt.getY());
		if (obj != null) {
			selectObj = obj;
			if (selectObj instanceof PlaceUI) {
				// window.placeAction.setSelectedPlace((PlaceGraph) selectObj);
				// window.placeAction.enablePlaceInfo();
				// window.placeAction.showInfo();
				// window.transAction.disableTransitionInfo();
				// window.arcAction.disableArcInfo();
				window.getPetriNetGraph().deselectTransition();
				window.getPetriNetGraph().deselectArc();
			} else if (selectObj instanceof TransitionUI) {
				// window.transAction.setSelectedTransition((TransitionGraph)
				// selectObj);
				// window.transAction.enableTransInfo();
				// window.transAction.showInfo();
				// window.arcAction.disableArcInfo();
				// window.placeAction.disablePlaceInfo();
				window.getPetriNetGraph().deselectPlace();
				window.getPetriNetGraph().deselectArc();

				if (evt.getButton() != MouseEvent.BUTTON1) {
					TransitionUI t = (TransitionUI) selectObj;
					t.cycleOrientation();
				}

			} else if (selectObj instanceof ArcUI) {
				// window.arcAction.setSelectedArc((ArcGraph) selectObj );
				// window.arcAction.enableArcInfo();
				// window.arcAction.showInfo();
				// window.transAction.disableTransitionInfo();
				// window.placeAction.disablePlaceInfo();
				window.getPetriNetGraph().deselectPlace();
				window.getPetriNetGraph().deselectTransition();

				if (evt.getButton() != MouseEvent.BUTTON1) {
					ArcUI arc = window.getPetriNetGraph().getSelectedArc();
					arc.cycleExtremePoint();
					arc.refreshEndPoints();
					arc = null;

				}
			} else if (selectObj instanceof Marker) {
				// window.transAction.disableTransitionInfo();
				// window.placeAction.disablePlaceInfo();
				window.getPetriNetGraph().deselectPlace();
				window.getPetriNetGraph().deselectTransition();

				if (evt.getButton() != MouseEvent.BUTTON1) {
					Marker marker = window.getPetriNetGraph().getSelectedMarker();
					String text = inputTextMarker();
					if (text != null) {
						marker.setText(text);
					}
				}
			}

			moveObj = selectObj;
		} else {
			// window.arcAction.focusLostPerformed();
			// window.placeAction.focusLostPerformed();
			// window.transAction.focusLostPerformed();

			window.getPetriNetGraph().deselectPlace();
			window.getPetriNetGraph().deselectTransition();
			window.getPetriNetGraph().deselectArc();

			moveObj = null;
			selectObj = null;
		}
	}