Have you considered using the doto macro in order to avoid having to repeat 
the component as the first argument of all the setters?

(let [btn (Button.)]
  (.setLayoutX btn 100)
  (.setLayoutY btn 150)
  (.setText btn "Hello World!"))

becomes:

(doto (Button.)
  (.setLayoutX 100)
  (.setLayoutY 150)
  (.setText "Hello World!"))

On Sunday, 16 December 2012 13:37:46 UTC, Christian Sperandio wrote:
>
> I did some changes.
>
> First and foremost, I change the project's name to a more formal one: it 
> has became clj-javafx and the link is now 
> https://github.com/chrix75/clj-javafx
>
> I cleaned the code too, thus:
>
>    - I remove the ugly Thread/sleep for promise and deliver
>    - make the code cleaner
>
>
>
> Le dimanche 16 décembre 2012 00:24:34 UTC+1, Christian Sperandio a écrit :
>>
>> I had a test to show how it work.
>>
>>
>> Le samedi 15 décembre 2012 22:10:50 UTC+1, Christian Sperandio a écrit :
>>>
>>> Hi,
>>>
>>> After some studies about JavaFX with Clojure, and bricks broke with my 
>>> head, I wrote a sort of wrapper to work more easily with both.
>>> It's here : https://github.com/chrix75/javafx-clj
>>>
>>> You can play with JavaFX in your REPL and you have the macro with-javax 
>>> and wit-javafx-let that let you write JavaFX code  without managing the 
>>> JavaFX runtime thread.
>>>
>>> I hope it can help.
>>>
>>> Chris
>>>
>>>

-- 
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