Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.arranger.jarl.shell.views
Class ViewUtil  view ViewUtil download ViewUtil.java

java.lang.Object
  extended bycom.arranger.jarl.shell.views.ViewUtil

public class ViewUtil
extends java.lang.Object

ViewUtil created on Apr 16, 2003


Constructor Summary
ViewUtil()
           
 
Method Summary
static void initNativeLookAndFeel()
          Tell system to use native look and feel, as in previous releases.
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 packAndShow(javax.swing.JFrame jframe)
          You might want to do some stuff prior to opening it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewUtil

public ViewUtil()
Method Detail

initNativeLookAndFeel

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


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.


packAndShow

public static void packAndShow(javax.swing.JFrame jframe)
You might want to do some stuff prior to opening it


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.