Class JSplitPanePreference

java.lang.Object
megamek.client.ui.preferences.PreferenceElement
megamek.client.ui.preferences.JSplitPanePreference
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class JSplitPanePreference extends PreferenceElement implements PropertyChangeListener
JSplitPanePreference monitors the location of the split divider on a JSplitPane. It sets the saved value when a dialog is loaded and changes it as it changes.

Call preferences.manage(new JSplitPanePreference(JSplitPane)) to use this preference, on a JSplitPane that has called setName