Java Reference
In-Depth Information
public void
removeElementAt(
int
index)
Same as
remove
but does not return the element removed.
public void
setElementAt(T newElement,
int
index)
Same as
set
with the arguments reversed but does not return the element replaced.
WindowListener
Interface
Package:
java.awt.event
The
WindowEvent
class is also in this package.
Extends the
EventListener
interface.
public void
windowActivated(WindowEvent e)
Invoked when a window is activated. When you click in a window, it becomes the activated
window. Other actions can also activate a window.
public void
windowClosed(WindowEvent e)
Invoked when a window has been closed.
public void
windowClosing(WindowEvent e)
Invoked when a window is in the process of being closed. Clicking the close-window button
causes an invocation of this method.
public void
windowDeactivated(WindowEvent e)
Invoked when a window is deactivated. When a window is activated, all other windows are
deactivated. Other actions can also deactivate a window.
public void
windowDeiconified(WindowEvent e)
Invoked when a window is deiconifi ed. When you activate a minimized window, it is deiconifi ed.
public void
windowIconified(WindowEvent e)
Invoked when a window is iconifi ed. When you click the minimize button in a
JFrame
, it is iconifi ed.
public void
windowOpened(WindowEvent e)
Invoked when a window has been opened.