// don't bother if the value didn't change
if (t == theTemperature)
return;
// save the old value
Double old = new Double(theTemperature);
// save the new value
theTemperature = t;
// fire the property change event
boundSupport.firePropertyChange("Temperature", old, new Double(t));