com.irisel.swing
Class WindowUtilities

java.lang.Object
  extended by com.irisel.swing.WindowUtilities

public class WindowUtilities
extends java.lang.Object

A few utilities that simplify using windows in Swing. 1998-99 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.
static void setJavaLookAndFeel()
           
static void setMotifLookAndFeel()
           
static void setNativeLookAndFeel()
          Tell system to use native look and feel, as in previous releases.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowUtilities

public WindowUtilities()
Method Detail

setNativeLookAndFeel

public static void setNativeLookAndFeel()
Tell system to use native look and feel, as in previous releases. Metal (Java) LAF is the default otherwise.


setJavaLookAndFeel

public static void setJavaLookAndFeel()

setMotifLookAndFeel

public static void setMotifLookAndFeel()

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.


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.


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.