Created
January 10, 2010 21:15
-
-
Save aberant/273772 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Color Graphics Dimension) | |
| '(javax.swing JFrame JPanel)) | |
| (def width 640) | |
| (def height 480) | |
| (defn render [g] ) | |
| (def panel (doto (proxy [JPanel] [] | |
| (paint [g] (render g))) | |
| (.setPreferredSize (new Dimension width height )))) | |
| (def frame (doto (new JFrame) (.add panel) .pack .show)) | |
| (frame) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment