public void paintComponent(Graphics g)
    {
		BufferedImage spriteSheet = null,Thruster;
    	BufferedImageLoader loader = new BufferedImageLoader();
    	try {
			spriteSheet = loader.loadImage("images/Ship_Shop/shipshopparts.png");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		// the following two lines are needed because calling the paint overrides the background color
		this.setBackground(Color.black);
		g.fillRect(265, 200, 600, 300);
		g.setColor(Color.white);
	
		if(Main.ShipShopThrustersMenu.selectionOvalX == 340)
		{
		  Thruster = spriteSheet.getSubimage(0, 39, 39, 29);
	      g.drawImage(Thruster,475, 250, 156, 116,this);
	      
	      if(Main.Player1.Ship.Ship_Thrusters.check_purchased_Thrusters(0) == 1)
	     	{
	    	  g.setFont(new Font("Serif",Font.PLAIN,48));
			  g.drawString("Equip This Thruster?",400,235);
			  g.setFont(new Font("Serif",Font.PLAIN,25));
	    	  g.drawString("Equip Part", 315, 494);
			}
		  else
		  {
		    g.setFont(new Font("Serif",Font.PLAIN,44));
			g.drawString("Confirm Your Thruster Purchase",275,235);
			g.setFont(new Font("Serif",Font.PLAIN,25));
		    g.drawString("Buy and Equip Part", 265, 494);
		  }
		  }
		else if(Main.ShipShopThrustersMenu.selectionOvalX == 540)
		{ 
			if(Main.Player1.Ship.Ship_Thrusters.check_purchased_Thrusters(1) == 1)
	     	{
				  g.setFont(new Font("Serif",Font.PLAIN,48));
				  g.drawString("Equip This Thruster?",400,235);
				  g.setFont(new Font("Serif",Font.PLAIN,25));
		    	  g.drawString("Equip Part", 315, 494);
			}
		   else
		   {
			   g.setFont(new Font("Serif",Font.PLAIN,44));
				g.drawString("Confirm Your Thruster Purchase",275,235);
				g.setFont(new Font("Serif",Font.PLAIN,25));
			    g.drawString("Buy and Equip Part", 265, 494);
			  }
			Thruster = spriteSheet.getSubimage(41, 38, 35, 31);
	      g.drawImage(Thruster,485, 250, 140, 124,this);
		
		}
		else if(Main.ShipShopThrustersMenu.selectionOvalX == 740)
		{ 
			if(Main.Player1.Ship.Ship_Thrusters.check_purchased_Thrusters(2) == 1)
	     	{
				  g.setFont(new Font("Serif",Font.PLAIN,48));
				  g.drawString("Equip This Thruster?",400,235);
				  g.setFont(new Font("Serif",Font.PLAIN,25));
		    	  g.drawString("Equip Part", 315, 494);
			}
		   else
		   {
			   g.setFont(new Font("Serif",Font.PLAIN,44));
				g.drawString("Confirm Your Thruster Purchase",275,235);
				g.setFont(new Font("Serif",Font.PLAIN,25));
			    g.drawString("Buy and Equip Part", 265, 494);
			  }
			Thruster = spriteSheet.getSubimage(76, 39, 32, 31);
	        g.drawImage(Thruster,500, 250, 128, 124,this);
		
		}
		
		g.drawString("Cancel",750, 494);
		
	    g.drawOval(selectionOvalX, selectionOvalY, selectionOvalHeight, selectionOvalWidth);
	
        
    }