|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhomenet.gui.util.UIHelper
public final class UIHelper
| Method Summary | |
|---|---|
static void |
centerOnScreen(java.awt.Component component)
|
static javax.swing.JButton |
createButton(java.lang.String text)
Create a button with the given text. |
static javax.swing.JButton |
createButton(java.lang.String text,
java.lang.String icon)
Create a button with the given text and the given icon name. |
static javax.swing.JButton |
createButton(java.lang.String text,
java.lang.String icon,
boolean flat)
Create a button with the given text and the given icon name. |
protected static javax.swing.ImageIcon |
readImageIcon(java.lang.String filename)
Create an image given the image filename. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void centerOnScreen(java.awt.Component component)
public static javax.swing.JButton createButton(java.lang.String text)
text - The title of the button
public static javax.swing.JButton createButton(java.lang.String text,
java.lang.String icon)
text - The title of the buttonicon - The icon associated with the button. The icons are assumed to
be located in the images/ folder.
public static javax.swing.JButton createButton(java.lang.String text,
java.lang.String icon,
boolean flat)
text - The title of the buttonicon - The icon associated with the button. The icons are assumed to
be located in the images/ folder.flat - If true, the button is flat
protected static javax.swing.ImageIcon readImageIcon(java.lang.String filename)
filename - The name of the image file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||