import java.awt.event.*;
import javax.swing.JFrame;
public class Driver extends JFrame implements WindowListener {
/** Creates new form Driver */
public Driver() {
initComponents();
addWindowListener(this);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
}
@SuppressWarnings("unchecked")
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Driver().setVisible(true);
}
});
}
public void windowClosing(WindowEvent e) {
throw new UnsupportedOperationException("Not supported yet.");
}
public void windowClosed(WindowEvent e) {
throw new UnsupportedOperationException("Not supported yet.");
}
public void windowIconified(WindowEvent e) {
throw new UnsupportedOperationException("Not supported yet.");
}
public void windowDeiconified(WindowEvent e) {
throw new UnsupportedOperationException("Not supported yet.");
}
public void windowDeactivated(WindowEvent e) {
throw new UnsupportedOperationException("Not supported yet.");
}
public void windowActivated(WindowEvent e) {
System.out.println("test");
}
public void windowOpened(WindowEvent e) {
System.out.println("test2");
}
// Variables declaration - do not modify
// End of variables declaration
}
|