def putClipboardFiles(files): content = ClipboardContent() content.putFiles(files) Clipboard.getSystemClipboard().setContent(content)
def putClipboardImage(image): content = ClipboardContent() content.putImage(SwingFXUtils.toFXImage(image, null)) Clipboard.getSystemClipboard().setContent(content)
def putClipboardHtmlText(text): content = ClipboardContent() content.putString(text) content.putHtml(text) Clipboard.getSystemClipboard().setContent(content)