Created
May 27, 2020 19:09
-
-
Save moradology/fff94e50ea4e284d22ff99e11854f9fd to your computer and use it in GitHub Desktop.
save to clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.datatransfer.StringSelection; | |
import java.awt.Toolkit; | |
import java.awt.datatransfer.Clipboard; | |
val stringSelection = new StringSelection(wkt); | |
val clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); | |
clipboard.setContents(stringSelection, null); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment