|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmce.swing.Util
public class Util
Swing utility class.
Field Summary | |
---|---|
static java.awt.Font |
fontLabel
|
static java.awt.Font |
fontTitle
|
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static javax.swing.Icon |
getIcon(java.lang.Class parent,
java.lang.String name)
|
static javax.swing.Icon |
getIcon(java.lang.String name)
Return an icon using the default parent package |
static void |
repaintLater(Repaintable c)
When a component updated very fast need to change the appearance can call this method and at regular interval (tipically 100 ms) the component will be update in the swing thread. |
static void |
setBox(javax.swing.JComponent j)
|
static void |
setLocationCenterTo(java.awt.Component c,
java.awt.Container parent)
Set a component location center to the parent |
static void |
setRepaintDelay(int n)
Set the delay for repaint ms. |
static javax.swing.border.TitledBorder |
setTitle(javax.swing.JComponent j,
java.lang.String title)
|
static javax.swing.border.TitledBorder |
setTitle(javax.swing.JComponent j,
java.lang.String title,
java.awt.Color c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Font fontTitle
public static final java.awt.Font fontLabel
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static void setRepaintDelay(int n)
public static void repaintLater(Repaintable c)
public static void setBox(javax.swing.JComponent j)
public static javax.swing.border.TitledBorder setTitle(javax.swing.JComponent j, java.lang.String title)
public static javax.swing.border.TitledBorder setTitle(javax.swing.JComponent j, java.lang.String title, java.awt.Color c)
public static javax.swing.Icon getIcon(java.lang.String name)
public static javax.swing.Icon getIcon(java.lang.Class parent, java.lang.String name)
public static void setLocationCenterTo(java.awt.Component c, java.awt.Container parent)
|
jmce - 1_02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |