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