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