public RoomObject getSelectedObject() {
		Room room = getSelectedRoom();
		
		DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getSelectionPath().getLastPathComponent();

		for (RoomObject obj : room.getObjects()) {
			if (obj.getLabel().equals(node.toString())) {
				return obj;
			}
		}
		
		return null;
	}