Daniel Dyer said:
OK, fair point, the definition of platform independence I was using was a
bit narrow, but if you want to pick up platform settings you really have to
do it in a platform-specific way. You can't pick-up someone's Windows
settings when running Gnome on Solaris for example, because there aren't
any Windows settings in that case.
Exactly, thats the problem with the SWING way. I think sun left the AWT
- build on top of native widgets - way, so they don't have to figure
out what to do about the differences in the underlying widgets on
different platforms. With SWING they don't have to worry about this
because it draws the widgets itself. But then a new problem appear, that
is, should the widgets pick up the users ui settings? If you wan't to
do that consistantly, then you end up writing lots of platform specific
code, and this might cancel out the time saved when porting widgets that
draw themselves. And many ui settings won't even apply when you draw the
widgets yourself. For that reason I predict that SWING will never be good
at picking up on users ui settings, and if sun does make an effort of
this then it will probably only be half measures and only on windows.