> Hello,
>
> Do you know of a good pointer that goes beyond the "don't use it" argument,
> and really makes a thorough comparison of pros and cons of the 2 frameworks
> ?
>

I'm not saying don't use Swing, I'm saying prefer Jambi.

My memory of Swing is dated so I'd have trouble making a thorough comparison
but I can provide an outline.

In favour of Swing:

- No extra dependencies
- No license restriction (Qt 4.4 requires you to buy a commercial license if
you don't want to opensource your app, won't be true anymore with Qt 4.5)
- De facto standard
- Instantly cross-platform (Jambi requires you to package a different jar
for each platform)

In favour of Qt:

- Great GUI builder (optional of course but you should give it a try, it's
powerful and doesn't get in your way)
- Cross-language (you can easily use the same GUI in C++, Python, Java,
Ruby, Perl, and a few others with minimal porting efforts
- Signals and slots, great way to manage events, objects emits signal which
you connect to slots. Often you just have to connect them together with no
extra code. If I want to implement a backbutton to work with a QWebview, I
just have to connect the clicked signal from the button to the back slot
from the web view (one liner).
- Encourages separation of your GUI and logic (very easy to change your GUI
without impeding the rest of your program)
- Better layout (this is subjective but I was fighting all the time with
Swing's and not Qt's)
- Better organisation (subjective again but I find it much easier to find my
way around Qt)

That's all I can think of at the moment. Overall, I don't think Swing is
terrible toolkit but Qt definitly feels a lot better to me.

You can check this blog post to have an overview on how to use it in
clojure:

http://briancarper.net/2008/10/31/qt4-in-lisp/

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

Reply via email to