Do you mean that this method only works when there is a selected text, and doesn't work otherwise? Ok I have tried both ways (with selected and unselected text) but no result :confused:
If it is...
Type: Posts; User: voltaire
Do you mean that this method only works when there is a selected text, and doesn't work otherwise? Ok I have tried both ways (with selected and unselected text) but no result :confused:
If it is...
I used it, no errors, but after clicking the JButton, I expected to be able to right-click on any text editor and normally paste whatever copied from the JTextArea, but that doen't happen :)
This...
Say there are a JButton called copy, and a JTextArea called txtArea, once the button clicked a copy of whatever in the JTextArea is, moved to the clipboard so that I can paste it to any text editor...