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