• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa Java vs Swing Java classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Cocoa Java vs Swing Java classes
      • From: Chris Hanson <email@hidden>
References: 
 >Cocoa Java vs Swing Java classes (From: Alex Reynolds <email@hidden>)

  • Prev by Date: Re: Pre-binding Question
  • Next by Date: Re: Instantiating window from nib
  • Previous by thread: Re: shell command line vars
  • Next by thread: Re: Cocoa Java vs Swing Java classes
  • Index(es):
    • Date
    • Thread