|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jorphan.gui.ComponentUtil
public final class ComponentUtil
This class is a Util for awt Component and could be used to place them in center of an other.
Method Summary | |
---|---|
static void |
centerComponentInComponent(Component parent,
Component toBeCentered)
Use this static method if you want to center a component over another component. |
static void |
centerComponentInWindow(Component component)
Use this static method if you want to center a component in Window. |
static void |
centerComponentInWindow(Component component,
int percentOfScreen)
Use this static method if you want to center and set its position compared to the size of the current users screen size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void centerComponentInWindow(Component component, int percentOfScreen)
component
- the component you want to center and set size onpercentOfScreen
- the percent of the current screensize you want the component
to bepublic static void centerComponentInWindow(Component component)
component
- the component you want to center in windowpublic static void centerComponentInComponent(Component parent, Component toBeCentered)
parent
- the component you want to use to place it ontoBeCentered
- the component you want to center
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |