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 (e.g. notepad)
Within the listener ; what is the required code
[COLOR="Black"] private class ButtonWatcher implements ActionListener { public void actionPerformed(ActionEvent a) { // possible code? } }[/COLOR]