Created
May 4, 2012 01:42
-
-
Save alcidesfp/2591156 to your computer and use it in GitHub Desktop.
Snippet Swing Clojure
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
(ns demo1 (:import (javax.swing JFrame JLabel))) | |
(doto (JFrame. "Hello") | |
(.add (JLabel. "Hello, World!")) | |
(.pack) | |
(.setDefaultCloseOperation JFrame/EXIT_ON_CLOSE) | |
(.setVisible true)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment