Logo    
how to work how to live how to play how to use stuff how to keep health

How to Copy data to system clipboard in Java

poster:how to do,from:how to do

 

// This method writes a string to the system clipboard.
public static void copyToSystemClipboard(String str) {
    StringSelection ss = new StringSelection(str);
    Toolkit.getDefaultToolkit().getSystemClipboard().setContents(ss, null);
}





howtd give you the best answers,this article about

How to Copy data to system clipboard in Java.

if it can help you,please collect it or send to your friends.


Copyright 2006 howtd.com. All rights reserved.
privacy - contact us