Hi All,
I have written some code to copy rows selected from a JTable via mouse and copied via Ctrl + C. These rows and their columns are formatted to a
string and copied to the system clipboard.
This code works fine in windows. I am able to paste the data from clipboard to notepad.
However this code doesn't work well with linux. Although the System.out.println() statements tell that the data is copied to the system clipboard, but trying to do a Ctrl+V or shift+insert doesn't seem to paste the data.
Has anyone ever tried to paste data to unix/linux's clipboard via
java? Any help in this regard will be very much appreciated.
Following is the code that I wrote: