On Feb 6, 10:36 pm, Emeka <emekami...@gmail.com> wrote:
> You could even embed a REPL into your
> application with a socket
> I am interested, could you make a rough patch for me to draw some
> inspiration from
There is a handy server_socket.clj in clojure-contrib which makes it
relatively trivial to set up:
http://groups.google.com/group/clojure/web/srepl.clj
[you need to have checked out clojure.contrib and have it in your
start script]
Once it is running, telnet to localhost 8888 and paste in this:
(srepl/later #(.setVisible srepl/frame true))
(srepl/later #(srepl/add-button srepl/frame "second"
(fn [evt] (println "second hello" evt))))
(srepl/later #(.pack srepl/frame))
And it adds a second button to the GUI on the fly.
Regards,
Tim
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---