I will have to disagree with "... lack of performance ...". SWT use
native widgets when Swing doing its own rendering in many cases. SWT
is much more straight forward API which tends to produce more compact
and less "indirect" code. One may argue that SWT is not "object
oriented" enough, but in my experience it is much easier to write
painfully slow GUI using Swing compare to SWT. Bottom line, you can
write reasonable fast application using either of these two. And you
can write painfully slow applications using either of these two. In
my experience it is easier to write slow application using Swing.
On other side, SWT in 9 out of 10 cases will produce better looking
application "without trying hard". IF you care how your application
looks on all Windows/Linux/Mac. IF your target platform Mac only,
then Swing + Quaqua will allow you to produce java application which
will look as good as any Carbon/Cocoa apps. But you can not "take"
Quaqua to other platforms.
Beside performance of the GUI, one of the biggest differentiators
between SWT and Swing is what kind of tool you can use to build your
application. If you choose to do SWT, than your only choice is
Eclipse, and unfortunately it works "so-so" on Mac OS X (and VE -
Visual Editor - does not work on Mac OS X at all ). With Swing you
have many more choices (Netbeans jump to mind right away).
Personally, I am "reluctant SWT fan". I do hope that Eclipse people
will fix all Eclipse performance issues (which are Eclipse issues,
not SWT) with 3.2 and once it'd done, SWT will become undisputed
champion of cross platform Java GUIs. Meanwhile, I keep Windows XP
box around just to be able to use VE to build my GUIs.
On Jan 12, 2006, at 7:09 PM, Scott Palmer wrote:
On 12-Jan-06, at 6:15 PM, George Ugarte wrote:
Hello,
I just need an opinion on what would be better to use - Swing or
SWT on OS X? Or maybe I should ask - what do you guys use to
build your GUI on OS X? Thank you.
Use Swing.
SWT on Mac seems to me to lack performance. It feels like it is
tuned for Windows. I have heard the Linux community make the same
complaint.
IMHO SWT doesn't really serve a useful purpose.
Opinions aside, you will find more information about Swing, online
or in print. Swing is more customizable, should you want or need
that. SWT tends to make things that match the native look and feel
a bit better than Swing, though the Swing Aqua implementation isn't
particularly bad and seems to improve with each release.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden