Catch Events After JSplitPane Divider Location Is Moved

Catching events after you move a JSplitPane‘s divider can be made possible through the PropertyChangeListenerJSplitPane class. Make sure you supply the ‘s DIVIDER_LOCATION_PROPERTY as the parameter so that this listener will listent to modified divider location events.

If you do not supply this as the first parameter in the addPropertyChangeListener() method, you can always place a conditional statement if the PropertyChangeEvent‘s getPropertyName() method returns dividerLocation as the value.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *