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.
Parameters:
Container - parent - The Container relative to which
the Component is centered.