java.lang.Object
com.arranger.jarl.shell.views.ViewUtil
- public class ViewUtil
- extends java.lang.Object
ViewUtil created on Apr 16, 2003
|
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 |
ViewUtil
public ViewUtil()
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.