public class ScreenCenterPositioner extends AbstractScreenPositioner
| Constructor and Description |
|---|
ScreenCenterPositioner()
Default constructor.
|
ScreenCenterPositioner(int widthOffset,
int heightOffset)
Constructor with an offset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
position(JFrame frame)
Set the frame's position to a new location.
|
checkMaxSize, getHeightOffset, getWidthOffsetpublic ScreenCenterPositioner()
public ScreenCenterPositioner(int widthOffset,
int heightOffset)
widthOffset - Width to adjust the horizontal position.heightOffset - Height to adjust the vertical position.public final void position(JFrame frame)
frame - Frame to move.Copyright © 2013 Future Invent Informationsmanagement GmbH, Hamburg (Germany). All Rights Reserved.