org.jfree.ui

Class ApplicationFrame

public class ApplicationFrame extends JFrame implements WindowListener

A base class for creating the main frame for simple applications. The frame listens for window closing events, and responds by shutting down the JVM. This is OK for small demo applications...for more serious applications, you'll want to use something more robust.

Author: David Gilbert

Constructor Summary
ApplicationFrame(String title)
Constructs a new application frame.
Method Summary
voidwindowActivated(WindowEvent event)
Required for WindowListener interface, but not used by this class.
voidwindowClosed(WindowEvent event)
Required for WindowListener interface, but not used by this class.
voidwindowClosing(WindowEvent event)
Listens for the main window closing, and shuts down the application.
voidwindowDeactivated(WindowEvent event)
Required for WindowListener interface, but not used by this class.
voidwindowDeiconified(WindowEvent event)
Required for WindowListener interface, but not used by this class.
voidwindowIconified(WindowEvent event)
Required for WindowListener interface, but not used by this class.
voidwindowOpened(WindowEvent event)
Required for WindowListener interface, but not used by this class.

Constructor Detail

ApplicationFrame

public ApplicationFrame(String title)
Constructs a new application frame.

Parameters: title the frame title.

Method Detail

windowActivated

public void windowActivated(WindowEvent event)
Required for WindowListener interface, but not used by this class.

Parameters: event information about the window event.

windowClosed

public void windowClosed(WindowEvent event)
Required for WindowListener interface, but not used by this class.

Parameters: event information about the window event.

windowClosing

public void windowClosing(WindowEvent event)
Listens for the main window closing, and shuts down the application.

Parameters: event information about the window event.

windowDeactivated

public void windowDeactivated(WindowEvent event)
Required for WindowListener interface, but not used by this class.

Parameters: event information about the window event.

windowDeiconified

public void windowDeiconified(WindowEvent event)
Required for WindowListener interface, but not used by this class.

Parameters: event information about the window event.

windowIconified

public void windowIconified(WindowEvent event)
Required for WindowListener interface, but not used by this class.

Parameters: event information about the window event.

windowOpened

public void windowOpened(WindowEvent event)
Required for WindowListener interface, but not used by this class.

Parameters: event information about the window event.