Class JWindowPreference

java.lang.Object
megamek.client.ui.preferences.PreferenceElement
megamek.client.ui.preferences.JWindowPreference
All Implemented Interfaces:
ComponentListener, WindowStateListener, EventListener

public class JWindowPreference extends PreferenceElement implements ComponentListener, WindowStateListener
JWindowPreference monitors the size (width and height), location, and maximization state of a Window. It sets the saved values when a dialog is loaded and changes them as they change.

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