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.