stijn leenknegt
By: a guest | Feb 17th, 2010 | Syntax:
Java | Size: 0.58 KB | Hits: 127 | Expires: Never
/**
* This method gets called when a bound property is changed.
* @param e A <code>PropertyChangeEvent</code> object describing
* the event source and the property that has changed. Must not be null.
*
* @throws NullPointerException if the parameter is null.
* @since 1.5
*/
String propertyName
= e.
getPropertyName();
if (propertyName == "horizontalScrollBar" ||
propertyName == "verticalScrollBar") {
setScrollBarRelations
((JScrollBar)e.
getNewValue());
}
}
}