Class JComboBoxPreference

java.lang.Object
megamek.client.ui.preferences.PreferenceElement
megamek.client.ui.preferences.JComboBoxPreference
All Implemented Interfaces:
ItemListener, EventListener

public class JComboBoxPreference extends PreferenceElement implements ItemListener
JComboBoxPreference monitors the selected index of a JComboBox. It sets the saved index when a dialog is loaded and changes it when it changes.

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