()
| 828 | } |
| 829 | |
| 830 | boolean copy() { |
| 831 | String s; |
| 832 | s = ta.getSelectedText(); |
| 833 | Clipboard clip = getToolkit().getSystemClipboard(); |
| 834 | if (clip!=null) { |
| 835 | StringSelection cont = new StringSelection(s); |
| 836 | clip.setContents(cont,this); |
| 837 | return true; |
| 838 | } else |
| 839 | return false; |
| 840 | } |
| 841 | |
| 842 | void cut() { |
| 843 | if (copy()) { |
no outgoing calls
no test coverage detected