|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ultraswing.SwingUtil
A collection of helper methods.
Constructor Summary | |
SwingUtil()
|
Method Summary | |
static void |
centerOnFrame(Frame frame,
Component comp)
Centers the component on the frame. |
static void |
centerOnScreen(Component comp)
Centers the component on the screen. |
static Border |
createInactiveBorder()
Creates a border with a flat edge |
static Border |
createLoweredBorder()
Creates a border with a lowered edge |
static Border |
createOneSidedBorder(int[] sides,
int insets)
|
static Border |
createRaisedBorder()
Creates a border with a raised edge |
static Point |
getCenter(Component f,
Dimension size)
Return the central point |
static ImageIcon |
getRolloverImage(Image img)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SwingUtil()
Method Detail |
public static Point getCenter(Component f, Dimension size)
f
- parent component, such as framesize
- the size of the new componentpublic static void centerOnScreen(Component comp)
public static void centerOnFrame(Frame frame, Component comp)
public static Border createRaisedBorder()
public static Border createLoweredBorder()
public static Border createInactiveBorder()
public static ImageIcon getRolloverImage(Image img)
public static Border createOneSidedBorder(int[] sides, int insets)
|
HOME | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |