org.fuin.utils4swing.common
Class ScreenCenterPositioner
java.lang.Object
org.fuin.utils4swing.common.AbstractScreenPositioner
org.fuin.utils4swing.common.ScreenCenterPositioner
- All Implemented Interfaces:
- FramePositioner
public class ScreenCenterPositioner
- extends AbstractScreenPositioner
Centers a frame on the Desktop.
|
Method Summary |
void |
position(JFrame frame)
Set the frame's position to a new location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScreenCenterPositioner
public ScreenCenterPositioner()
- Default constructor.
ScreenCenterPositioner
public ScreenCenterPositioner(int widthOffset,
int heightOffset)
- Constructor with an offset.
- Parameters:
widthOffset - Width to adjust the horizontal position.heightOffset - Height to adjust the vertical position.
position
public final void position(JFrame frame)
- Set the frame's position to a new location.
- Parameters:
frame - Frame to move.
Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.