      1  import java.awt.event.ActionEvent;

      2  import java.awt.event.ActionListener;

      3

      4  /**

      5     An action listener that prints a message.

      6  */

      7  public class ClickListener implements ActionListener

      8  {

      9     public void actionPerformed(ActionEvent event)

     10     {

     11        System.out.println("I was clicked.");

     12     }

     13  }