org.gjt.universe.gui
Class GUIUtils

java.lang.Object
  |
  +--org.gjt.universe.gui.GUIUtils

public class GUIUtils
extends java.lang.Object


Field Summary
private static java.awt.Image displayIcon
           
static javax.swing.border.Border emptyBorder10
           
static javax.swing.border.Border emptyBorder5
          global static components
 
Constructor Summary
GUIUtils()
           
 
Method Summary
static void center(java.awt.Component inner, java.awt.Component outer)
          center(Component inner, Component outer) Centers inner component within outer component.
static void centerInScreen(java.awt.Component c)
          centerInScreen(Component c) centers Component c inside screen.
static java.awt.Image getDisplayIcon()
          getDisplayIcon() Gets the Icon that is displayed in the corner of Frames and Dialog boxes.
static javax.swing.JTextArea makeMultiLabel()
          makeMultiLabel() makes a non-editable multiline label.
static javax.swing.JTextArea makeMultiLabel(java.lang.String text)
           
static javax.swing.JTextArea makeMultiLabel(java.lang.String text, java.awt.Color color)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

displayIcon

private static java.awt.Image displayIcon

emptyBorder5

public static final javax.swing.border.Border emptyBorder5
global static components


emptyBorder10

public static final javax.swing.border.Border emptyBorder10
Constructor Detail

GUIUtils

public GUIUtils()
Method Detail

center

public static void center(java.awt.Component inner,
                          java.awt.Component outer)
center(Component inner, Component outer) Centers inner component within outer component. make sure this is called after pack() !! (TODO: what if inner is larger than outer ??)


centerInScreen

public static void centerInScreen(java.awt.Component c)
centerInScreen(Component c) centers Component c inside screen. make sure this is called after pack() !! (TODO: what if c is larger than screen ??)


makeMultiLabel

public static javax.swing.JTextArea makeMultiLabel()
makeMultiLabel() makes a non-editable multiline label. Text may be added with JTextArea commands and what not. Text is also non-selectable. add text via 'append' methods or 'setText' words automatically break if text area is resized.


makeMultiLabel

public static javax.swing.JTextArea makeMultiLabel(java.lang.String text)

makeMultiLabel

public static javax.swing.JTextArea makeMultiLabel(java.lang.String text,
                                                   java.awt.Color color)

getDisplayIcon

public static java.awt.Image getDisplayIcon()
getDisplayIcon() Gets the Icon that is displayed in the corner of Frames and Dialog boxes. Cached.



Copyright © 2001 Universe Dev Team All Rights Reserved.