Skip to content

Instantly share code, notes, and snippets.

@pcomans
Created July 22, 2011 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pcomans/1100521 to your computer and use it in GitHub Desktop.
Save pcomans/1100521 to your computer and use it in GitHub Desktop.
(defn mkframe []
(let [frame (java.awt.Frame.)]
(.setVisible frame true)
(.setSize frame (java.awt.Dimension. 512 512))
(let [gfx (.getGraphics frame)]
(.drawString gfx (.. (java.util.Date.) toString) 160 256))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment