Class JListPreference

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

public class JListPreference extends PreferenceElement implements PropertyChangeListener
JListPreference monitors the selected indices of a JList. It sets the saved indices when a dialog is loaded and changes them when they change.

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