Hello All,
I have a Java application I have been developing and using for years
on Windows. I just recently started testing this application on a
brand new iMac with OS X 10.4.10 and Java SE 1.5.
The Mac version of the application looks different that the Windows
version. The JButtons on the toolbar are 2 different sizes on the Mac
and not Windows XP and JButtons in another toolbar have no borders on
the Mac but do on Windows XP.
Anyway, my question is:
Does anyone have any Java experience on the Mac and if so, are there
any documents that might explain differences in the Apple iMac version
of Java SE 1.5 vs the Sun Windows version Java SE 1.5?
Thanks in advance,
a24900@googlemail.com - 13 Sep 2007 21:31 GMT
> Does anyone have any Java experience on the Mac and if so, are there
> any documents that might explain differences in the Apple iMac version
> of Java SE 1.5 vs the Sun Windows version Java SE 1.5?
The Apple website has a ton of Mac OS X Java information.
As a general rule, use layout managers and don't hardcode sizes and
positions. Further, avoid messing with widget settings to overwrite
default behavior or default representations. This often breaks on
other platforms and PLAFs.
Roedy Green - 14 Sep 2007 16:17 GMT
>Does anyone have any Java experience on the Mac and if so, are there
>any documents that might explain differences in the Apple iMac version
>of Java SE 1.5 vs the Sun Windows version Java SE 1.5?
1. Use as explicit LAF. See http://mindprod.com/jgloss/laf.html
2. Use layout managers, not absolute positioning. see
http://mindprod.com/jgloss/layout.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com