All Packages Class Hierarchy This Package Previous Next Index
WindowManager
is capable of cascading itself
relative to other windows on the screen.
ActionListener
which is notified when
the user cancels out of a window.
ActionListener
which is notified when
commit processing is complete.
WindowManager
.
WindowManager
.
public static final int OFFSET_FROM_OWNER
public abstract Window getWindow()
WindowManager
.
The window may be an instance of either JDialog
or
JFrame
, depending on whether the main window
is modal or modeless.
WindowManager
public abstract void setModalRelativeTo(WindowManager mgr)
WindowManager
.
If the window is not currently showing, the window for this
WindowManager
is centered on the screen.
WindowManager
managing the window
in relation to which this object's window location is determined
public abstract void addCommitListener(ActionListener listener)
ActionListener
which is notified when
commit processing is complete.
This facility is provided for modeless windows, so that the
application may learn when the window has closed.
The listener's actionPerformed
method will be called following
successful completion of commit processing on the window.
The ActionEvent
passed to the listener object will
have its action command string set to "COMMIT".
This method is not recommended for modal windows, since the
application will be blocked on the setVisible
call until the window is closed.
ActionListener
to be notified
public abstract void addCancelListener(ActionListener listener)
ActionListener
which is notified when
the user cancels out of a window.
This facility is provided for modeless windows, so that the
application may learn when the window has closed.
The listener's actionPerformed
method will be called when
the user cancels out of a window without committing any changes.
The ActionEvent
passed to the listener object will
have its action command string set to "CANCEL".
This method is not recommended for modal windows, since the
application will be blocked on the setVisible
call until the window is closed.
ActionListener
to be notified
All Packages Class Hierarchy This Package Previous Next Index