DESY ACOP Beans Home

com.cosylab.gui.components.util
Class ComponentPositioner

java.lang.Object
  extended by com.cosylab.gui.components.util.ComponentPositioner

public class ComponentPositioner
extends java.lang.Object

This is a convenience class with static methods used to position graphic components on screen.

Version:
$id$
Author:
Miha Kadunc

Constructor Summary
ComponentPositioner()
           
 
Method Summary
static void centerOnScreen(java.awt.Window w)
          Centers a window in the middle of the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPositioner

public ComponentPositioner()
Method Detail

centerOnScreen

public static void centerOnScreen(java.awt.Window w)
Centers a window in the middle of the screen. Screen size is queried from the AWT Toolkit. The window is centered by calling its setLocation function.

Parameters:
w - the window to be centered


Copyright © 2010. All Rights Reserved.