public class CenterComponent extends Object
Constructor and Description |
---|
CenterComponent() |
public static void centerComponent(Component component, Rectangle parentBounds)
component
- The component to centerparentBounds
- Bounds of the parent of the component.