smithers.util
Class Launcher
java.lang.Object
smithers.util.Launcher
public class Launcher
- extends java.lang.Object
Convenience class to launch AWT or Swing components from the AWT event
dispatching thread. When this class launches a component, it creates a new
Frame
with the specified size and dimensions, adds a WindowListener
which disposes the window when closed, ands adds and gives
focus to the component.
Method Summary |
static void |
launch(java.awt.Component c,
java.lang.String title,
int width,
int height)
Adds an event to launch a new window containing the specified component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
launch
public static void launch(java.awt.Component c,
java.lang.String title,
int width,
int height)
- Adds an event to launch a new window containing the specified component.
- Parameters:
c
- the Component
to launchtitle
- the title to give the framewidth
- the width of the frameheight
- the height of the frame