com.gridsystems.utils
Class AWTUtils

java.lang.Object
  extended by com.gridsystems.utils.AWTUtils

public final class AWTUtils
extends java.lang.Object

General Utilities.

Version:
1.0
Author:
Xmas

Method Summary
static void centerWindow(java.awt.Window wnd)
          Deprecated. Use "Window.setLocationRelativeTo()" method instead
static boolean existDisplay()
          Check if display exists, in UNIX systems.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

centerWindow

public static void centerWindow(java.awt.Window wnd)
Deprecated. Use "Window.setLocationRelativeTo()" method instead

Centre any window to the middle of the screen.

Parameters:
wnd - Window to center

existDisplay

public static boolean existDisplay()
Check if display exists, in UNIX systems.

Returns:
true if the display exists, false otherwise


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.