uk.ac.mrc.hgmp.embreo
Class EmbreoUtils

java.lang.Object
  |
  +--uk.ac.mrc.hgmp.embreo.EmbreoUtils

public class EmbreoUtils
extends java.lang.Object


Constructor Summary
EmbreoUtils()
           
 
Method Summary
static void CenterFrame(javax.swing.JFrame f)
          Locate a frame centrally on the screen
static void CenterWindow(javax.swing.JWindow w)
          Locate a window centrally on the screen
static void errorPopup(javax.swing.JFrame f, java.lang.String msg)
          shortcut to create an error popup
static void infoPopup(javax.swing.JFrame f, java.lang.String msg)
          shortcut to create an informational popup
static java.lang.String ListSystemProperties()
          Retrieve all the system properties into a String
static void warningPopup(javax.swing.JFrame f, java.lang.String msg)
          shortcut to create a warning popup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbreoUtils

public EmbreoUtils()
Method Detail

CenterFrame

public static void CenterFrame(javax.swing.JFrame f)
Locate a frame centrally on the screen

Parameters:
f - The JFrame to be positioned

CenterWindow

public static void CenterWindow(javax.swing.JWindow w)
Locate a window centrally on the screen

Parameters:
w - The JWindow to be positioned

ListSystemProperties

public static java.lang.String ListSystemProperties()
Retrieve all the system properties into a String


infoPopup

public static void infoPopup(javax.swing.JFrame f,
                             java.lang.String msg)
shortcut to create an informational popup


warningPopup

public static void warningPopup(javax.swing.JFrame f,
                                java.lang.String msg)
shortcut to create a warning popup


errorPopup

public static void errorPopup(javax.swing.JFrame f,
                              java.lang.String msg)
shortcut to create an error popup