Buttons Example (Cont)
public void actionPerformed(ActionEvent ae) {
System.out.println("Button Press received");
System.out.println("Button's action command is:" + ((Button) ae.getSource()).getActionCommand());
class myWindowListener extends WindowAdapter {
public void windowClosing(WindowEvent event){