smithers.util
Class Launcher

java.lang.Object
  extended by 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
 

Method Detail

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 launch
title - the title to give the frame
width - the width of the frame
height - the height of the frame