void addListeners()
	{
//		if (availableObjects != null)
//		{
//			availableObjects.addListSelectionListener(new ListSelectionListener()
//			{
//				public void valueChanged(ListSelectionEvent e)
//				{
//					if (e.getValueIsAdjusting() == false)
//					{
//						if (availableObjects.getSelectedIndex() == -1)
//						{
//							//No selection
//						}
//						else
//						{
//							System.out.printf("Selected: %s [%d,%d]\n", availableListModel.get(availableObjects.getSelectedIndex()).getName(), availableListModel.get(availableObjects.getSelectedIndex()).getX(), availableListModel.get(availableObjects.getSelectedIndex()).getY());
//						}
//					}
//				}
//			});
//		}
		if (addedObjects != null)
		{
			addedObjects.addListSelectionListener(new ListSelectionListener()
			{
				public void valueChanged(ListSelectionEvent e)
				{
					if (e.getValueIsAdjusting() == false)
					{
						if (addedObjects.getSelectedIndex() == -1)
						{
							//No selection
						}
						else
						{
							GameObject selObj = addedListModel.get(addedObjects.getSelectedIndex());

							mapPanel.setSelectedObject(selObj);
							mapPanel.setObjectIsNew(false);

							if (selObj.getDirection())
							{
								directionRight.setSelected(true);
							}
							else
							{
								directionLeft.setSelected(true);
							}
						}
					}
				}
			});
		}
	}