org.gjt.btools.gui
Class Positioner

java.lang.Object
  |
  +--org.gjt.btools.gui.Positioner

public class Positioner
extends java.lang.Object

Used to position objects on the screen.


Constructor Summary
Positioner()
           
 
Method Summary
static void centerInFrame(java.awt.Dialog dialog, java.awt.Frame frame)
          Position a given dialog over the centre of a frame.
static void centerOnScreen(java.awt.Dialog dialog)
          Position a given dialog in the centre of the screen.
static void centerOnScreen(java.awt.Frame frame)
          Position a given frame in the centre of the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Positioner

public Positioner()
Method Detail

centerOnScreen

public static void centerOnScreen(java.awt.Frame frame)
Position a given frame in the centre of the screen.

Parameters:
frame - the frame to centre.

centerOnScreen

public static void centerOnScreen(java.awt.Dialog dialog)
Position a given dialog in the centre of the screen.

Parameters:
dialog - the dialog to centre.

centerInFrame

public static void centerInFrame(java.awt.Dialog dialog,
                                 java.awt.Frame frame)
Position a given dialog over the centre of a frame.

Parameters:
dialog - the dialog to centre.
frame - the frame about which to centre the dialog.


Copyright © 1998-2001, Ben Burton
This software is released under the GNU Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).