The class named WProc2

Listing 8 defines the class named WProc2

Therefore, it can selectively override

Only two of the methods of the WindowListener interface are overridden.

The overridden methods display a message when called.

Listing 8. The class named WProc2.
class WProc2 extends WindowAdapter{
  public void windowIconified(
                           WindowEvent e){
    System.out.println(
      "******** WProc2 windowIconified "
      + "test msg");
  }//end windowIconified()

  public void windowDeiconified(
                           WindowEvent e){
    System.out.println(
      "******** WProc2 windowDeiconified "
      + "test msg");
  }//end windowDeiconified()
}//end class WProc2
File: cj.htm [Next] [Prev]