@Override 
		public void actionPerformed(ActionEvent event) 
		{ 
			if (!event.getSource().equals(back)) 
			{ 

			

				try 
				{ 
				  
				  Item item = (Item) inventory.getSelectedValue(); 
	        int indexNumber = inventory.getSelectedIndex(); 
	        int itemNumber = item.getIDNumber(); 
	        
					if (event.getSource().equals(use)) 
					{ 
						if (usableItems.contains(itemNumber) && thePlayer.canUseThisPart(item)) 
						{ 
							message.setText(thePlayer.use(item)); 
							if (thepanel!=null) 
							{ 
								thepanel.playerStatusChanged(); 
							} 
							bank.setText("Money: $" + thePlayer.getMoney() + " Fuel: " 
									+ thePlayer.getFuelLevel()); 
							inventoryList.removeElement(item); 
							inventory.setSelectedIndex(indexNumber); 

						} else 
						{ 
							message.setText("You can't use this item");
						} 
					} else if (event.getSource().equals(drop)) 
					{ 

						thePlayer.drop(item); 
						inventoryList.removeElement(item); 
						inventory.setSelectedIndex(indexNumber); 
					} 
					repaint();
				} catch (Exception e) 
				{ 

				} 
			} else 
			{ 
				dispose(); 
			} 

		}