public void actionPerformed(ActionEvent e)
	{
		Object objectUsed = e.getSource();
		
		//random number created into variable
		Random randomNum = new Random();
		int randItem = randomNum.nextInt(5);
		
		//used for everytime a button is pressed
		if(objectUsed instanceof JButton)
		{
			GarmentPrice.clothingPrice(); //check and sort prices are matching combo boxes
			GarmentImage.clothingImage(); //check and sort images are matching combo boxes
			
			//used to check if the check boxes are ticked and wont randomise if they are
			if(GUIFrame.hatBox.isSelected() == false) 	
			{			
				GUIFrame.hatCombo.setSelectedIndex(randItem); 
				GarmentImage.clothingImage();
				GarmentPrice.clothingPrice();
			}
			if(GUIFrame.jacketBox.isSelected() == false) 
			{			
				GUIFrame.jacketCombo.setSelectedIndex(randItem); 
				GarmentImage.clothingImage();
				GarmentPrice.clothingPrice();
			}
			if(GUIFrame.beltBox.isSelected() == false) 	
			{			
				GUIFrame.beltCombo.setSelectedIndex(randItem); 
				GarmentImage.clothingImage();
				GarmentPrice.clothingPrice();
			}
			if(GUIFrame.trouserBox.isSelected() == false) 		
			{			
				GUIFrame.trouserCombo.setSelectedIndex(randItem); 
				GarmentImage.clothingImage();
				GarmentPrice.clothingPrice();
			}
			if(GUIFrame.shoeBox.isSelected() == false) 			
			{			
				GUIFrame.shoeCombo.setSelectedIndex(randItem); 
				GarmentImage.clothingImage();
				GarmentPrice.clothingPrice();
			}
		}
		
		//used everytime a certain menuitem is pressed
		if (objectUsed instanceof JMenuItem) 
        {
			if(e.getSource() == GUIFrame.Pophelp)
			{	
				
			}
			
			if(e.getSource() == GUIFrame.Poptotalprice)
			{
				
			}
        }
	}