public void stateChanged(ChangeEvent e)
	{
		if(e.getSource() instanceof JSlider)
		{
			JSlider source = (JSlider)e.getSource();
			
			double val = source.getValue();
			
	        if(source.getName().equals("tempSlider"))
	        	World.temp = val;
	        else if(source.getName().equals("presSlider"))
	        	World.pres = val;
			
			if(!source.getValueIsAdjusting())
			{
				if(source.getName().equals("tempSlider"))
		        	tempField.setText(""+World.temp);
		        else if(source.getName().equals("presSlider"))
		        	presField.setText(""+World.pres);
			}
		}
	}