/**
* Helper utilities for working with Swing.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
*/
public class SwingUtils {
/**
* Returns the size of the screen.
- *
+ *
* @return The size of the screen
*/
- public Dimension getScreenSize() {
+ public static Dimension getScreenSize() {
return new Dimension(screenDimension);
}
/**
* Centers the given window on the screen.
- *
+ *
* @param window
* The window to center
*/
/**
* {@link Window#pack() Packs} the given window and positions it so that its
* center stays the same.
- *
+ *
* @param window
* The window to pack and recenter
*/
/**
* Returns the center of the given rectangle.
- *
+ *
* @param bounds
* The rectangle which center to get
* @return The center of the rectangle