Results 1 to 2 of 2
  1. #1
    banhbaochay is offline Member
    Join Date
    Apr 2010
    Posts
    32
    Rep Power
    0

    Default 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:
    Java Code:
    StringSelection ss = new StringSelection(str);
    Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, null);
    After that, I can paste it to everywhere outside my program (using Ctr+V or paste)
    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.

  2. #2
    banhbaochay is offline Member
    Join Date
    Apr 2010
    Posts
    32
    Rep Power
    0

Similar Threads

  1. Replies: 6
    Last Post: 04-08-2009, 04:05 AM
  2. Clipboard and jTextPane
    By Gudradain in forum AWT / Swing
    Replies: 11
    Last Post: 01-04-2009, 11:08 PM
  3. Copy from Clipboard in japplet
    By AZMichael in forum Java Applets
    Replies: 3
    Last Post: 09-06-2008, 02:30 PM
  4. SWT Clipboard Example
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-07-2008, 04:34 PM
  5. Using the clipboard
    By Java Tip in forum java.awt.datatransfer
    Replies: 0
    Last Post: 04-16-2008, 10:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •