public void execute() {
System.out.println("Hello world");
final ClipboardOwner clipboardOwner = new ClipboardOwner() {
public void lostOwnership(Clipboard clipboard, Transferable contents) {
System.exit(0);
}
};
clipboard.setContents(transferable, clipboardOwner);
synchronized (o) {
try {
o.wait();
} catch (InterruptedException ie) {
ie.printStackTrace();
}
}
}
GetContentsInterruptedTest.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:openjdk9
作者:
评论列表
文章目录