Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * 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
- */
- public void propertyChange(PropertyChangeEvent e) {
- String propertyName = e.getPropertyName();
- if (propertyName == "horizontalScrollBar" ||
- propertyName == "verticalScrollBar") {
- if (e.getNewValue() instanceof JScrollBar) {
- setScrollBarRelations((JScrollBar)e.getNewValue());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement