UITools (Java Globus API)

org.globus.tools.ui.util
Class UITools

java.lang.Object
  |
  +--org.globus.tools.ui.util.UITools

public abstract class UITools
extends java.lang.Object

This class provides method to center a Component in a center of a given container

Version:
1.0
Author:
Hung Dinh, David Carew

Constructor Summary
UITools()
           
 
Method Summary
static void center(java.awt.Container parent, java.awt.Component comp)
          This method positions a Component in a center of a given Container.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UITools

public UITools()
Method Detail

center

public static void center(java.awt.Container parent,
                          java.awt.Component comp)
This method positions a Component in a center of a given Container. If the Container is null or the the Component is larger than the Container, the Component is centered relative to the screen.


main

public static void main(java.lang.String[] args)