org.jfree.ui

Class ApplicationFrame

Implemented Interfaces:
WindowListener

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

void
windowActivated(WindowEvent event)
Required for WindowListener interface, but not used by this class.
void
windowClosed(WindowEvent event)
Required for WindowListener interface, but not used by this class.
void
windowClosing(WindowEvent event)
Listens for the main window closing, and shuts down the application.
void
windowDeactivated(WindowEvent event)
Required for WindowListener interface, but not used by this class.
void
windowDeiconified(WindowEvent event)
Required for WindowListener interface, but not used by this class.
void
windowIconified(WindowEvent event)
Required for WindowListener interface, but not used by this class.
void
windowOpened(WindowEvent event)
Required for WindowListener interface, but not used by this class.

Constructor Details

ApplicationFrame

public ApplicationFrame(String title)
Constructs a new application frame.
Parameters:
title - the frame title.

Method Details

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.