Re: Cocoa Java vs Swing Java classes
Re: Cocoa Java vs Swing Java classes
- Subject: Re: Cocoa Java vs Swing Java classes
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 14 Oct 2001 09:54:55 +0100
On Sunday, October 14, 2001, at 06:47 am, Alex Reynolds wrote:
Why should I use Cocoa Java for GUI elements when I can use Swing Java
to achieve the same graphical effect?
That is to say, what is the benefit of using Cocoa classes for Java
development? What Cocoa Java classes provide functionality not
available directly or indirectly with "regular" Java?
Swing is ugly and slow and bloated and generally crap. Have a look at a
swing application on OS X and compare the feel with the a Cocoa
application. It just doesn't feel right. Swing also has various issues
on OS X.
As someone else pointed out when you use Cocoa Java you lose
portability, but then you can probably keep all your model and backend
for your application and just rewrite the UI layer. It's up to you,
though.
If you are only targeting Mac OS X and thinking of using Cocoa Java, you
may as well use Objective-C because the only advantage of using Java is
that it's cross-platform, and when you use Cocoa you immediately lose
cross-platformness.
-- Finlay