Java Reference
In-Depth Information
All else fails, go with
jnk
.
In one case you do need to check for the OS. Mac OS X has a number of GUI goodies
that can be used only on that OS and yet should be used to make your GUI application
look more like a “native” Mac application.
Enhancing Your Swing GUI for Mac OS X
explores this issue in more detail. In brief, Apple says to look for the string
mrj.version
to determine whether you are running on OS X:
boolean isMacOS = System.getProperty("mrj.version") != null;