From the Apple site:
http://www.apple.com/support/downloads/javaformacosx105update1.html
At this point Eclipse's use of SWT is a reason for me to avoid Eclipse.
Why? Because if/when I throw some time into writing a plug-in, I want
to use the same GUI toolkit that works everywhere else (all platforms,
applets, web start, etc) with no native component deployment. It also
clearly reduces the portability of Eclipse both in absolute terms and in
terms of heavily customizing the look-and-feel to each platform -- which
is an issue when needing to support and occasionally work directly upon
many different platforms.
Does the "Swing on SWT" stuff [I forgot the name] allow Eclipse to run
on Java 6 on the Mac?
--
Jess Holle
This could be done via assertions -- that way you can check for this
during development and suffer no performance penalty during normal
execution.
> B. Apparently, SWT is a bit cleaner under the hood and is somewhat
> easier to port around; swing works on more platforms only because sun
> spends
> a lot more time on it. Possibly swing needs to work on top of
> SWT instead of AWT. However, the amount of effort required to pull
> this off
> in comparison to the gains don't quite seem to be worth it.
> Thus, perhaps take the principle that in SWT only the bare minimum of
> JNI code is
> used and the rest is done in java, because java in general is a
> lot more maintainable, especially amongst a big camp of java
> programmers.
>
It's not Swing that's the issue for porting here -- it's AWT and its
mounds of native code.
Anything the Sun guys can learn from SWT here, e.g. deprecating
non-Swing AWT components and reworking most Component and Container (the
AWT base classes actually used by Swing) in a really clean manner
targeted just at supporting Swing, would be good.
> C. Add methods that allow you to write the local OS's widgets. I'm
> not sure if this should be added on to AWT (because as I understand
> it, swing
> pretty much does all the painting), or preferably its a
> LookAndFeel choice, but from time to time you want to write a very
> simple app that just
> integrates well with the OS you're on. I believe swing currently
> tries to implement this by emulating the styles of various OSes (e.g.
> the way
> I understand it, the mac os look and feel works on windows too).
> That seems a heck of a lot of effort and doesn't look like it'll ever
> work quite right.
>
I guess that might be important in the consumer space. For
enterprise/business apps this only seems important when Sun louses up
JFileChooser on Windows.
--
Jess Holle
--
[]'s
Marcelo Takeshi Fukushima
> B. Apparently, SWT is a bit cleaner under the hood and is somewhatIt's not Swing that's the issue for porting here -- it's AWT and its
> easier to port around; swing works on more platforms only because sun
> spends
> a lot more time on it. Possibly swing needs to work on top of
> SWT instead of AWT. However, the amount of effort required to pull
> this off
> in comparison to the gains don't quite seem to be worth it.
> Thus, perhaps take the principle that in SWT only the bare minimum of
> JNI code is
> used and the rest is done in java, because java in general is a
> lot more maintainable, especially amongst a big camp of java
> programmers.
>
mounds of native code.
Anything the Sun guys can learn from SWT here, e.g. deprecating
non-Swing AWT components and reworking most Component and Container (the
AWT base classes actually used by Swing) in a really clean manner
targeted just at supporting Swing, would be good.
> C. Add methods that allow you to write the local OS's widgets. I'mI guess that might be important in the consumer space. For
> not sure if this should be added on to AWT (because as I understand
> it, swing
> pretty much does all the painting), or preferably its a
> LookAndFeel choice, but from time to time you want to write a very
> simple app that just
> integrates well with the OS you're on. I believe swing currently
> tries to implement this by emulating the styles of various OSes (e.g.
> the way
> I understand it, the mac os look and feel works on windows too).
> That seems a heck of a lot of effort and doesn't look like it'll ever
> work quite right.
>
enterprise/business apps this only seems important when Sun louses up
JFileChooser on Windows.
check out /System/Library/Frameworks/JavaVM.framework/
with kind regards,
David Linsin
- - - - - - - - - - - - - - - - - - - - - - - -
email: dli...@gmail.com
blog: http://dlinsin.blogspot.com