com.wordpress.tipsforjava.swing
[Java] Class SplitPaneSynchronizer
java.lang.Object
com.wordpress.tipsforjava.swing.SplitPaneSynchronizer
- All Implemented Interfaces:
- PropertyChangeListener
public class SplitPaneSynchronizer
extends Object
Convenience class to synchronize the divider location of related
JSplitPanes. Any number of split panes can be synchronized.
Synchronization will occur when:
- the divider is dragged
- the one touch expandable feature is used
- the setDividerLocation(...) method is used
- Authors:
- Rob Camick
- Darryl Burke
DIVIDER_LOCATION
private static final String DIVIDER_LOCATION
-
splitPanes
private ArrayList splitPanes
-
SplitPaneSynchronizer
public SplitPaneSynchronizer(JSplitPane... splitPanes)
-
addSplitPane
public void addSplitPane(JSplitPane splitPane)
-
propertyChange
public void propertyChange(PropertyChangeEvent e)
-
removeSplitPane
public void removeSplitPane(JSplitPane splitPane)
-
Groovy Documentation