|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gerhardb.lib.swing.SwingUtils
public class SwingUtils
| Constructor Summary | |
|---|---|
SwingUtils()
|
|
| Method Summary | |
|---|---|
static void |
centerOnScreen(java.awt.Window window)
Set the window location to center the window on the screen. |
static java.lang.String |
ColorToString(java.awt.Color color)
|
static void |
sizeScreen(java.awt.Window window,
float scale)
|
static java.awt.Color |
StringToColor(java.lang.String c)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwingUtils()
| Method Detail |
|---|
public static void sizeScreen(java.awt.Window window,
float scale)
public static void centerOnScreen(java.awt.Window window)
Note: Because this method depends on the size of the windw, the pack() method of the window and any other operations that may cause a change in the windows size should be completed before using this method.
window - to set the location onpublic static java.lang.String ColorToString(java.awt.Color color)
public static java.awt.Color StringToColor(java.lang.String c)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||