public class WindowMonitor
extends java.awt.event.WindowAdapter
As an example, the following code shows the window monitor being used for a frame:
JFrame frame = new JFrame(); frame.addWindowListener (new WindowMonitor());
Constructor and Description |
---|
WindowMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
windowClosing(java.awt.event.WindowEvent e) |