Skip to content

Instantly share code, notes, and snippets.

@aphexmunky
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save aphexmunky/60c020ce4e64ff13b82e to your computer and use it in GitHub Desktop.

Select an option

Save aphexmunky/60c020ce4e64ff13b82e to your computer and use it in GitHub Desktop.
Just somewhere to plonk some random functions that I may or may not use
import java.awt.datatransfer._
import java.awt.Toolkit
import java.util.UUID
def clipboardUUID = {
val uuid: String = UUID.randomUUID.toString()
val stringSelection = new StringSelection(uuid)
val clpbrd = Toolkit.getDefaultToolkit().getSystemClipboard()
clpbrd.setContents(stringSelection, null)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment