uk.co.petertribble.jingle
Class JingleMultiFrame

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

public class JingleMultiFrame
extends java.lang.Object

A Registry of JFrames. Allows an application to have multiple windows open and for the user to close just the one window or exit the entire application.


Constructor Summary
JingleMultiFrame()
           
 
Method Summary
static void register(javax.swing.JFrame f, javax.swing.JMenuItem jmi)
          Inserts the given JFrame and JMenuItem into the registry.
static void unregister(javax.swing.JFrame f)
          Unregister the given JFrame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JingleMultiFrame

public JingleMultiFrame()
Method Detail

register

public static void register(javax.swing.JFrame f,
                            javax.swing.JMenuItem jmi)
Inserts the given JFrame and JMenuItem into the registry.


unregister

public static void unregister(javax.swing.JFrame f)
Unregister the given JFrame. If there are no remaining JFrames, exit the JVM. If there is only a single remaining JFrame, disable its menu item.