Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.simscomputing.swing
Class SwingUtilities  view SwingUtilities download SwingUtilities.java

java.lang.Object
  extended bycom.simscomputing.swing.SwingUtilities

public class SwingUtilities
extends java.lang.Object

Common Swing tasks.

Version:
$Revision: 1.1.1.1 $ $Date: 2000/02/21 21:22:37 $

Field Summary
private static java.awt.Point ZERO_POINT
           
 
Constructor Summary
SwingUtilities()
           
 
Method Summary
private static void center(java.awt.Container inner, java.awt.Dimension outerSize, java.awt.Point offset)
           
static void centerOnParent(java.awt.Container container, java.awt.Container parent)
          Centers the specified frame in the middle of the specified parent.
static void centerOnParent(java.awt.Container internalFrame, javax.swing.JDesktopPane parent)
          Centers the specified internal frame in the middle of the specified parent.
static void centerOnScreen(javax.swing.JFrame frame)
          Centers the specified frame in the middle of the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO_POINT

private static final java.awt.Point ZERO_POINT
Constructor Detail

SwingUtilities

public SwingUtilities()
Method Detail

centerOnScreen

public static final void centerOnScreen(javax.swing.JFrame frame)
Centers the specified frame in the middle of the screen.


centerOnParent

public static final void centerOnParent(java.awt.Container container,
                                        java.awt.Container parent)
Centers the specified frame in the middle of the specified parent.


centerOnParent

public static final void centerOnParent(java.awt.Container internalFrame,
                                        javax.swing.JDesktopPane parent)
Centers the specified internal frame in the middle of the specified parent.


center

private static void center(java.awt.Container inner,
                           java.awt.Dimension outerSize,
                           java.awt.Point offset)