JavaFX from Clojure repl

Viewed 4576

I start to learn Clojure, and I want to try JavaFX for GUI. I found this article:http://nailthatbug.net/2011/06/clojure-javafx-2-0-simple-app/ , but I want to start it via repl for fast testing and convenience.

So, for instance, I can write in repl this and see new window:

(defn main-start []
  (doto (JFrame. "Window!")
   (.setSize (java.awt.Dimension. 400 300))
   (.setVisible true)))

Is there any way to do such thing with javafx.application.Application - to see new JavaFX window?

Thx. Andrew.

3 Answers
Related