com.bytefarmers.droids
Class WindowUtilities

java.lang.Object
  extended bycom.bytefarmers.droids.WindowUtilities

public class WindowUtilities
extends java.lang.Object

A few utilities that simplify testing of windows in Swing. 1998 Marty Hall, http://www.apl.jhu.edu/~hall/java/


Constructor Summary
WindowUtilities()
           
 
Method Summary
static javax.swing.JFrame openInJFrame(java.awt.Container content, int width, int height)
          Uses Color.white as the background color, and the name of the Container's class as the JFrame title.
static javax.swing.JFrame openInJFrame(java.awt.Container content, int width, int height, java.lang.String title)
          Uses Color.white as the background color.
static javax.swing.JFrame openInJFrame(java.awt.Container content, int width, int height, java.lang.String title, java.awt.Color bgColor)
          A simplified way to see a JPanel or other Container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowUtilities

public WindowUtilities()
Method Detail

openInJFrame

public static javax.swing.JFrame openInJFrame(java.awt.Container content,
                                              int width,
                                              int height,
                                              java.lang.String title,
                                              java.awt.Color bgColor)
A simplified way to see a JPanel or other Container. Pops up a JFrame with specified Container as the content pane.

Parameters:
content - frame content
width - frame width
height - frame height
title - frame title
bgColor - frame background colour
Returns:
JFrame

openInJFrame

public static javax.swing.JFrame openInJFrame(java.awt.Container content,
                                              int width,
                                              int height,
                                              java.lang.String title)
Uses Color.white as the background color.

Parameters:
content - frame content
width - frame width
height - frame height
title - frame title
Returns:
JFrame

openInJFrame

public static javax.swing.JFrame openInJFrame(java.awt.Container content,
                                              int width,
                                              int height)
Uses Color.white as the background color, and the name of the Container's class as the JFrame title.

Parameters:
content - frame content
width - frame width
height - frame height
Returns:
JFrame