@@ -0,0 +1,2451 @@
+package com.oozinoz.ui;%0A%0A//import com.sun.java.swing.*;%0Aimport javax.swing.*;%0Aimport javax.swing.border.*;%0A//import java.util.*;%0Aimport java.awt.*;%0Aimport java.awt.event.*;%0A%0A/*%0A * Copyright (c) 2001 Steven J. Metsker.%0A * %0A * Steve Metsker makes no representations or warranties about%0A * the fitness of this software for any particular purpose, %0A * including the implied warranty of merchantability.%0A *%0A * Please use this software as you wish with the sole%0A * restriction that you may not claim that you wrote it.%0A */%0A/**%0A * This utility class provides an interface that makes the %0A * Swing subsystem easy to use.%0A * %0A * @author Steven J. Metsker%0A */%0Apublic class SwingFacade %0A%7B%0A/**%0A * Create a titled border with the given title.%0A *%0A * @param title the words to show in the title border tab%0A * @return a (beveled) titled border with the given title%0A */%0Apublic static TitledBorder createTitledBorder(String title)%0A%7B%0A%09TitledBorder tb =%0A%09%09BorderFactory.createTitledBorder(%0A%09%09%09BorderFactory.createBevelBorder(BevelBorder.RAISED),%0A%09%09%09title,%0A%09%09%09TitledBorder.LEFT,%0A%09%09%09TitledBorder.TOP);%0A%09tb.setTitleColor(Color.black);%0A%09tb.setTitleFont(getStandardFont());%0A%09return tb;%0A%7D%0A/**%0A * Create a new panel that wraps a titled border around a %0A * given panel.%0A *%0A * @param title the words to show in the title border tab%0A * @param in the panel that the border goes around%0A * @return a (beveled) titled border with the given title%0A */%0Apublic static JPanel createTitledPanel(%0A%09String title,%0A%09JPanel in)%0A%7B%0A%09JPanel out = new JPanel();%0A%09out.add(in);%0A%09out.setBorder(createTitledBorder(title));%0A%09return out;%0A%7D%0A/**%0A * Create a standard font for GUI use.%0A *%0A * @return a standard font for GUI use%0A */%0Apublic static Font getStandardFont()%0A%7B%0A%09return new Font(%22Dialog%22, Font.PLAIN, 18);%0A%7D%0A/**%0A * Display the given component within a frame.%0A *%0A * @param component the component to display%0A * @param title the window title for the frame%0A * @return the frame%0A */%0Apublic static JFrame launch(Component c, String title)%0A%7B%0A%09JFrame frame = new JFrame(title);%0A%09frame.getContentPane().add(c);%0A%09listen(frame);%0A%09frame.pack();%0A%09frame.setVisible(true);%0A%09return frame;%0A%7D%0A/**%0A * Set up an exit listener for a supplied frame.%0A *%0A * @param frame the frame whose closing will trigger a%0A *              system exit%0A */%0Apublic static void listen(Frame f) %0A%7B%0A%09f.addWindowListener%0A%09%09(new WindowAdapter() %0A%09%09%09%7B%0A%09%09%09%09public void windowClosing(WindowEvent e) %0A%09%09%09%09%7B%0A%09%09%09%09%09System.exit(0);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09);%0A%7D%0A%7D%0A

Create SwingFacade.java