|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bdgp.swing.SwingUtil
A pile of useful methods for Swing applications.
Method Summary | |
static void |
blockUntilImagePrepared(java.awt.Image in)
Forces the current thread to yield until the given image has completely loaded. |
static void |
center(java.awt.Window win)
Places a Window in the center of the screen. |
static java.lang.String |
imageObserverInfoflagToString(int infoflag)
Decodes the bits of a java.awt.image.ImageObserver infoflag into a human readable string. |
static void |
sizeToPreferred(java.awt.Component comp)
Resizes a Component to its preferred size |
static void |
sizeToPreferred(javax.swing.JDialog dialog)
Resizes a JDialog to its preferred size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void center(java.awt.Window win)
win
- the window to centerpublic static void sizeToPreferred(javax.swing.JDialog dialog)
dialog
- the dialog box to resizepublic static void sizeToPreferred(java.awt.Component comp)
comp
- the component to resizepublic static void blockUntilImagePrepared(java.awt.Image in)
in
- the image being loadedpublic static java.lang.String imageObserverInfoflagToString(int infoflag)
infoflag
- the flag to decode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |