原文:http://www.open-open.com/code/view/1453188435933

 

public static void main(String[] args) {
        StringSelection stsel = new StringSelection("String");
        Toolkit.getDefaultToolkit().getSystemClipboard().setContents(stsel, stsel);
    }

 

相关文章:

  • 2022-12-23
  • 2021-12-12
  • 2021-12-31
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2021-10-29
  • 2022-12-23
  • 2022-01-24
  • 2021-12-19
  • 2022-02-01
  • 2021-08-01
相关资源
相似解决方案