public void paintComponent(Graphics g)
    {
		BufferedImage spriteSheet = null,Hull;
    	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.ShipShopHullsMenu.selectionOvalX == 340)
		{
		  Hull = spriteSheet.getSubimage(121, 0, 15, 35);
	      g.drawImage(Hull,515, 250, 60, 140,this);
	      if(Main.Player1.Ship.Ship_Hull.check_purchased_Hulls(0) == 1)
	     	{
	    	  g.setFont(new Font("Serif",Font.PLAIN,48));
			  g.drawString("Equip This Hull?",400,235);
			  g.setFont(new Font("Serif",Font.PLAIN,25));
	    	  g.drawString("Equip Part", 315, 494);
			}
		  else
		  {
		    g.setFont(new Font("Serif",Font.PLAIN,48));
			g.drawString("Confirm Your Hull Purchase",265,235);
			g.setFont(new Font("Serif",Font.PLAIN,25));
		    g.drawString("Buy and Equip Part", 265, 494);
		  }
		  }
		else if(Main.ShipShopHullsMenu.selectionOvalX == 540)
		{ 
			if(Main.Player1.Ship.Ship_Hull.check_purchased_Hulls(1) == 1)
	     	{
				  g.setFont(new Font("Serif",Font.PLAIN,48));
				  g.drawString("Equip This Hull?",400,235);
				  g.setFont(new Font("Serif",Font.PLAIN,25));
		    	  g.drawString("Equip Part", 315, 494);
			}
		   else
		   {
			    g.setFont(new Font("Serif",Font.PLAIN,48));
				g.drawString("Confirm Your Hull Purchase",265,235);
				g.setFont(new Font("Serif",Font.PLAIN,25));
			    g.drawString("Buy and Equip Part", 265, 494);
			  }
			Hull = spriteSheet.getSubimage(142, 0, 15, 35);
	      g.drawImage(Hull,500, 250, 60, 140,this);
		
		}
		else if(Main.ShipShopHullsMenu.selectionOvalX == 740)
		{ 
			if(Main.Player1.Ship.Ship_Hull.check_purchased_Hulls(2) == 1)
	     	{
				  g.setFont(new Font("Serif",Font.PLAIN,48));
				  g.drawString("Equip This Hull?",400,235);
				  g.setFont(new Font("Serif",Font.PLAIN,25));
		    	  g.drawString("Equip Part", 315, 494);
			}
		   else
		   {
			    g.setFont(new Font("Serif",Font.PLAIN,48));
				g.drawString("Confirm Your Hull Purchase",265,235);
				g.setFont(new Font("Serif",Font.PLAIN,25));
			    g.drawString("Buy and Equip Part", 265, 494);
			  }
			Hull = spriteSheet.getSubimage(158, 0, 15, 35);
	        g.drawImage(Hull,515, 250, 60, 140,this);
		
		}
		
		g.drawString("Cancel",750, 494);
		
	    g.drawOval(selectionOvalX, selectionOvalY, selectionOvalHeight, selectionOvalWidth);
	
        
    }