I am running a  swing tutorial clojure program file and when I run the
result is
++++++++++++++++++++++++++++++++++++++
user=> (load-file "c:/clojure-1.2.1/counter-app.clj")
#'user/counter-app
user=>
++++++++++++++++++++++++++++++++++

What does this line mean?
#'user/counter-app

The name of my file is counter-app.clj
program listing on win Vista IS
------------------------------------------------------------------
(import '(javax.swing JLabel JButton JPanel JFrame))


(defn counter-app []
  (let [counter (atom 0)
        label (JLabel. "Counter: 0")
        button (doto (JButton. "Add 1")
                 (on-action evnt  ;; evnt is not used
                   (.setText label
                      (str "Counter: " (swap! counter inc)))))
        panel (doto (JPanel.)
                (.setOpaque true)
                (.add label)
                (.add button))]
    (doto (JFrame. "Counter App")
      (.setContentPane panel)
      (.setSize 300 100)
      (.setVisible true))))

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to