Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jorphan.gui » [javadoc | source]
org.apache.jorphan.gui
public final class: ComponentUtil [javadoc | source]
java.lang.Object
   org.apache.jorphan.gui.ComponentUtil
This class is a Util for awt Component and could be used to place them in center of an other.
Method from org.apache.jorphan.gui.ComponentUtil Summary:
centerComponentInComponent,   centerComponentInWindow,   centerComponentInWindow
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jorphan.gui.ComponentUtil Detail:
 public static  void centerComponentInComponent(Component parent,
    Component toBeCentered) 
    Use this static method if you want to center a component over another component.
 public static  void centerComponentInWindow(Component component) 
    Use this static method if you want to center a component in Window.
 public 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. Valid percent is between +-(0-100) minus is treated as plus, bigger than 100 is always set to 100.