| java.lang.Object org.apache.jorphan.gui.ComponentUtil
ComponentUtil | final public class ComponentUtil (Code) | | This class is a Util for awt Component and could be used to place them in
center of an other.
author: Bo Regnlin version: $Revision: 493784 $ |
centerComponentInComponent | public static void centerComponentInComponent(Component parent, Component toBeCentered)(Code) | | Use this static method if you want to center a component over another
component.
Parameters: parent - the component you want to use to place it on Parameters: toBeCentered - the component you want to center |
centerComponentInWindow | public static void centerComponentInWindow(Component component, int percentOfScreen)(Code) | | Use this static method if you want to center and set its position
compared to the size of the current users screen size. Valid percent is
between +-(0-100) minus is treated as plus, bigger than 100 is always set
to 100.
Parameters: component - the component you want to center and set size on Parameters: percentOfScreen - the percent of the current screensize you want the componentto be |
centerComponentInWindow | public static void centerComponentInWindow(Component component)(Code) | | Use this static method if you want to center a component in Window.
Parameters: component - the component you want to center in window |
|
|