public void deleteSelectedObject()
	{
		if (addedListModel != null)
		{
			int selectedIndex = addedObjects.getSelectedIndex();

			if (selectedIndex != -1)
			{
				GameObject objToRem = addedListModel.get(selectedIndex);

				ListIterator<GameObject> objsli = addedObjectsList.listIterator();
				while (objsli.hasNext())
				{
					if (objsli.next() == objToRem)
					{
						objsli.remove();
						addedListModel.remove(selectedIndex);
						addedObjects.setSelectedIndex(selectedIndex == 0 ? 0 : selectedIndex - 1);
						mapPanel.level.setModified(true);
						break;
					}
				}
				mapPanel.repaint();
			}
		}
	}