FileDocCategorySizeDatePackage
CCPHandler.javaAPI DocExample686Thu Oct 24 20:14:20 BST 2002None

CCPHandler

public class CCPHandler extends Object implements ActionListener

Fields Summary
public static final String
CUT
public static final String
COPY
public static final String
PASTE
Constructors Summary
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent e)


      
    String command = e.getActionCommand();
    if (command == CUT) { // We can do this since we're comparing constants.
      System.out.println("Got Cut event");
    }
    else if (command == COPY) {
      System.out.println("Got Copy event");
    }
    else if (command == PASTE) {
      System.out.println("Got Paste event");
    }