public void actionPerformed(ActionEvent e)
	{
		if(e.getSource() instanceof JTextField)			// if you entered a new value in a text field
		{
			JTextField textField = (JTextField)e.getSource();
			
			if(textField.getName().equals("tempField"))
			{
				tempSlider.setValue((int)Double.parseDouble(textField.getText()));	// set either temperature
			}
			else if(textField.getName().equals("presField"))
			{
				presSlider.setValue((int)Double.parseDouble(textField.getText()));	// or pressure
			}
		}
		else if(e.getSource() instanceof JButton)		// if you pressed a button
		{
			JButton button = (JButton)e.getSource();
			
			if(button.getName().equals("tempButton"))		// if it was the temperature button
			{
				double newTemp = World.getBPTemp();				// find the boiling point temperature
				World.temp = newTemp;							// and set the temperature to that
				tempField.setText(""+(int)(newTemp*10)/10.0);	// out to one decimal place
				tempSlider.setValue((int)newTemp);
			}
			else if(button.getName().equals("presButton"))	// otherwise
			{
				double newPres = World.getBPPres();			// do that to the pressure
				World.pres = newPres;
				presField.setText(""+(int)(newPres*10)/10.0);
				presSlider.setValue((int)newPres);
			}
		}
	}