JAVA 操作剪切板
[code lang=”js”]
//复制 设置剪切板的内容
Clipboard clip = Toolkit.getDefaultToolkit().getSystemClipboard();
Transferable tText = new StringSelection("刘亦菲呢?");
clip.setContents(tText, null);
[/code]
[code lang=”js”]
//复制 设置剪切板的内容
Clipboard clip = Toolkit.getDefaultToolkit().getSystemClipboard();
Transferable tText = new StringSelection("刘亦菲呢?");
clip.setContents(tText, null);
[/code]