FileDocCategorySizeDatePackage
CCPHandler.javaAPI DocExample800Sun Aug 23 19:44:08 BST 1998None

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 statics
      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");
    }