1 43 44 package org.jfree.ui; 45 46 import java.awt.event.WindowEvent ; 47 import java.awt.event.WindowListener ; 48 49 import javax.swing.JFrame ; 50 51 58 public class ApplicationFrame extends JFrame implements WindowListener { 59 60 65 public ApplicationFrame(final String title) { 66 super(title); 67 addWindowListener(this); 68 } 69 70 75 public void windowClosing(final WindowEvent event) { 76 if (event.getWindow() == this) { 77 dispose(); 78 System.exit(0); 79 } 80 } 81 82 87 public void windowClosed(final WindowEvent event) { 88 } 90 91 96 public void windowActivated(final WindowEvent event) { 97 } 99 100 105 public void windowDeactivated(final WindowEvent event) { 106 } 108 109 114 public void windowDeiconified(final WindowEvent event) { 115 } 117 118 123 public void windowIconified(final WindowEvent event) { 124 } 126 127 132 public void windowOpened(final WindowEvent event) { 133 } 135 136 } 137 | Popular Tags |