1 /*
2 * Created on Sep 19, 2003
3 * Copyright (c) 2003 William Lee. All rights reserved.
4 */
5 package portaview;
6
7 import java.awt.event.WindowAdapter;
8 import java.awt.event.WindowEvent;
9
10 import javax.swing.JFrame;
11
12 /***
13 * General utilities.
14 *
15 * @author <a href="mailto:wwlee1@uiuc.edu">William Lee</a>
16 * @version $Id: WindowUtils.java,v 1.1.1.1 2003/09/28 21:14:33 wlee Exp $
17 */
18 public class WindowUtils
19 {
20 public static void addClosingListener(JFrame frame)
21 {
22 frame.addWindowListener(new WindowAdapter()
23 {
24 public void windowClosing(WindowEvent e)
25 {
26 System.exit(0);
27 }
28
29 public void windowDeiconified(WindowEvent e)
30 {
31 }
32
33 public void windowIconified(WindowEvent e)
34 {
35 }
36 });
37 }
38 }
This page was automatically generated by Maven