EOJ_Class

    1| import javax.swing.*;
    2| import java.awt.event.*;
    3| 
    4| public class EOJ_Class extends JFrame implements WindowListener
    5| {
    6|     final static long serialVersionUID = 5;
    7| 
    8|     Control_Class oC;
    9| 
  10|     public EOJ_Class(Control_Class oControl)
  11|     {
  12|         oC = oControl;
  13|     }
  14| 
  15|     public void windowActivated(WindowEvent e)
  16|     {
  17| 
  18|     }
  19|     public void windowDeactivated(WindowEvent e)
  20|     {
  21| 
  22|     }
  23|     public void windowOpened(WindowEvent e)
  24|     {
  25| 
  26|     }
  27|     public void windowClosing(WindowEvent e)
  28|     {
  29|         System.exit(0);
  30|     }
  31|     public void windowClosed(WindowEvent e)
  32|     {
  33| 
  34|     }
  35|     public void windowIconified(WindowEvent e)
  36|     {
  37| 
  38|     }
  39|     public void windowDeiconified(WindowEvent e)
  40|     {
  41| 
  42|     }
  43| 
  44| }