(ActionEvent event)
| 706 | |
| 707 | // handle cut, copy and paste |
| 708 | public void actionPerformed(ActionEvent event) { |
| 709 | String cmd = event.getActionCommand(); |
| 710 | if (cmd.equals(CUT)) { |
| 711 | text.cut(); |
| 712 | } else if (cmd.equals(COPY)) { |
| 713 | text.copy(); |
| 714 | } else if (cmd.equals(PASTE)) { |
| 715 | text.paste(); |
| 716 | } |
| 717 | } |
| 718 | |
| 719 | /** |
| 720 | * If not in the event thread run via SwingUtilities.invokeAndWait() |