public ObjectPanel()
	{
		this.renderer = new ObjectCellRenderer();

		this.radioDirection.add(directionLeft);
		this.radioDirection.add(directionRight);

		buttonAdd.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				if (availableListModel != null)
				{
					int selectedIndex = availableObjects.getSelectedIndex();

					if (selectedIndex != -1)
					{
						addNewObject(availableListModel.get(selectedIndex).getName());
					}
				}
			}
		});
		buttonRemove.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				deleteSelectedObject();
			}
		});
		directionLeft.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				if (addedObjects != null && addedObjects.getSelectedIndex() != -1)
				{
					addedListModel.get(addedObjects.getSelectedIndex()).setDirection(false);
					mapPanel.level.setModified(true);
					mapPanel.repaint();
				}
			}
		});
		directionRight.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				if (addedObjects != null && addedObjects.getSelectedIndex() != -1)
				{
					addedListModel.get(addedObjects.getSelectedIndex()).setDirection(true);
					mapPanel.level.setModified(true);
					mapPanel.repaint();
				}
			}
		});
	}