ar.com.da.swing
Class UIUtils

java.lang.Object
  extended by ar.com.da.swing.UIUtils

public class UIUtils
extends java.lang.Object

Miscelaneous UI utils.

Author:
Carlos E.Descalzi

Constructor Summary
UIUtils()
           
 
Method Summary
static void centerWindow(java.awt.Window window)
          Centers a window on the screen
static void resizeRelativelyToScreen(java.awt.Window window, float percentage)
          Sets to a window to a size relative to the screen
static void resizeRelativelyToScreen(java.awt.Window window, float width, float height)
          Sets to a window to a size relative to the screen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIUtils

public UIUtils()
Method Detail

centerWindow

public static void centerWindow(java.awt.Window window)
Centers a window on the screen

Parameters:
window - the window to be centered

resizeRelativelyToScreen

public static void resizeRelativelyToScreen(java.awt.Window window,
                                            float width,
                                            float height)
Sets to a window to a size relative to the screen

Parameters:
window -
width - percentage in x
height - percentage in y

resizeRelativelyToScreen

public static void resizeRelativelyToScreen(java.awt.Window window,
                                            float percentage)
Sets to a window to a size relative to the screen

Parameters:
window -
percentage -


Copyright © 2006 null. All Rights Reserved.