Let's say I created a GUI with its main panel JTextArea and the superscript above (which contains a copy and paste button, abbreviated ctrl + c and ctrl + v).
Perhaps after some work the program will spit out a bunch of data on JTextArea, and then I want to allow the user to copy, cut or paste the selected (selected) words from JTextArea to other places, such as notepad or the like.
So, which listener should use to determine the choice, output the selected words and place them in the place where the OS stores the copied files? Plz be specific, thanks for any help! :)
source share