Class JTextFieldPreference

java.lang.Object
megamek.client.ui.preferences.PreferenceElement
megamek.client.ui.preferences.JTextFieldPreference
All Implemented Interfaces:
EventListener, DocumentListener

public class JTextFieldPreference extends PreferenceElement implements DocumentListener
JTextFieldPreference monitors the text value of a JTextField. It sets the saved value when a dialog is loaded and changes it as it changes.

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