Results 1 to 2 of 2
Thread: Clipboard on linux
- 12-09-2010, 01:06 PM #1
Member
- Join Date
- Apr 2010
- Posts
- 32
- Rep Power
- 0
Clipboard on linux
Hello,
I met some troubles about using clipboard on linux (openSUSE-KDE). I hope you 'll solve it for me. Thank you!
On windows, I use below code for set string to clipboard:
After that, I can paste it to everywhere outside my program (using Ctr+V or paste)Java Code:StringSelection ss = new StringSelection(str); Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, null);
But on linux, after set string to clipboard, I can't paste it anywhere (Ctr+V --> paste nothing, right click and paste --> nothing happen)Last edited by banhbaochay; 12-09-2010 at 02:38 PM.
- 12-10-2010, 04:11 AM #2
Member
- Join Date
- Apr 2010
- Posts
- 32
- Rep Power
- 0
Similar Threads
-
[SOLVED] Windows Linux conflict - TrayIcon image not display in Linux
By Eranga in forum Advanced JavaReplies: 6Last Post: 04-08-2009, 04:05 AM -
Clipboard and jTextPane
By Gudradain in forum AWT / SwingReplies: 11Last Post: 01-04-2009, 11:08 PM -
Copy from Clipboard in japplet
By AZMichael in forum Java AppletsReplies: 3Last Post: 09-06-2008, 02:30 PM -
SWT Clipboard Example
By Java Tip in forum SWTReplies: 0Last Post: 07-07-2008, 04:34 PM -
Using the clipboard
By Java Tip in forum java.awt.datatransferReplies: 0Last Post: 04-16-2008, 10:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks