uk.co.petertribble.jingle
Class JingleUtils

java.lang.Object
  extended by uk.co.petertribble.jingle.JingleUtils

public class JingleUtils
extends java.lang.Object

A collection of miscellaneous graphical functions used by applications


Constructor Summary
JingleUtils()
           
 
Method Summary
static void Center(java.awt.Window w)
          Locate a window centrally on the screen
static javax.swing.JMenuBar closeMenuBar(javax.swing.JFrame f)
          Gives a menubar that just does file-close
static void errorPopup(javax.swing.JFrame f, java.lang.String msg)
          Creates an error popup.
static javax.swing.JMenuBar exitMenuBar()
          Gives a menubar that just does file-exit
static void infoPopup(javax.swing.JFrame f, java.lang.String msg)
          Creates an informational popup.
static void warningPopup(javax.swing.JFrame f, java.lang.String msg)
          Creates a warning popup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JingleUtils

public JingleUtils()
Method Detail

Center

public static void Center(java.awt.Window w)
Locate a window centrally on the screen

Parameters:
w - The Window to be positioned

exitMenuBar

public static javax.swing.JMenuBar exitMenuBar()
Gives a menubar that just does file-exit


closeMenuBar

public static javax.swing.JMenuBar closeMenuBar(javax.swing.JFrame f)
Gives a menubar that just does file-close


infoPopup

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


warningPopup

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


errorPopup

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