info.aduna.swing
Class BoxUtil

java.lang.Object
  extended by info.aduna.swing.BoxUtil

public final class BoxUtil
extends Object

Facilitates the use of Box and BoxLayout.


Constructor Summary
BoxUtil()
           
 
Method Summary
static Box center(JComponent component)
          Returns a boz in which the given component is centered both horizontally and vertically.
static Box centerHorizontal(JComponent component)
          Returns a box in which the given component is centered horizontally.
static Box centerVertical(JComponent component)
          Returns a box in which the given component is centered vertically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoxUtil

public BoxUtil()
Method Detail

centerHorizontal

public static Box centerHorizontal(JComponent component)
Returns a box in which the given component is centered horizontally.


centerVertical

public static Box centerVertical(JComponent component)
Returns a box in which the given component is centered vertically.


center

public static Box center(JComponent component)
Returns a boz in which the given component is centered both horizontally and vertically.



Copyright © 1997-2008 Aduna. All Rights Reserved.