Calendar Component v5.1
www.calendarcomponent.com

com.imagine.component.calendar.util
Class WindowUtilities

java.lang.Object
  extended bycom.imagine.component.calendar.util.WindowUtilities

public class WindowUtilities
extends java.lang.Object

This class provides certains functions for working with gui.


Constructor Summary
WindowUtilities()
           
 
Method Summary
static void centerWindowAroundPoint(java.awt.Window window, java.awt.Point point)
          This function will center the specified window on screen.
static void centerWindowOnScreen(java.awt.Window window)
          This function will center the specified window on screen.
static javax.swing.JDialog createDialog(java.awt.Window parent)
           
static java.awt.Window getAncestorWindow(java.awt.Component c)
          Get the window on which the component provided as parameter is placed.
static void validateOwnerWindow(java.awt.Component c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowUtilities

public WindowUtilities()
Method Detail

getAncestorWindow

public static java.awt.Window getAncestorWindow(java.awt.Component c)
Get the window on which the component provided as parameter is placed. The window must be a dialog or a frame. If the component is not placed on a dialog or a frame returns null.


validateOwnerWindow

public static void validateOwnerWindow(java.awt.Component c)

centerWindowOnScreen

public static void centerWindowOnScreen(java.awt.Window window)
This function will center the specified window on screen.


centerWindowAroundPoint

public static void centerWindowAroundPoint(java.awt.Window window,
                                           java.awt.Point point)
This function will center the specified window on screen.


createDialog

public static javax.swing.JDialog createDialog(java.awt.Window parent)

Calendar Component v5.1
www.calendarcomponent.com