FileDocCategorySizeDatePackage
MacOSUtil.javaAPI DocExample841Fri Jan 30 19:26:06 GMT 2004com.darwinsys.macosui

MacOSUtil

public class MacOSUtil extends Object
Utilities for GUI work.
version
$Id: MacOSUtil.java,v 1.11 2004/01/31 01:26:05 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public static booleanisMacOS()
Return true if we are running MacOS; needs a few GUI tweaks if so.

		return System.getProperty("mrj.version") != null;
	
public static voidsetMacOS(java.lang.String appName)
Set a few common properties for the given application if we are running under MacOS. Usage Example:
if (MacOSUtil.isMacOS()) {
MacOSUtil.setMacOS("JabaDex");
}

param
appName - the name of the Application.

		System.setProperty("apple.laf.useScreenMenuBar",  "true");
		System.setProperty("apple.awt.showGrowBox",  "true");
		System.setProperty("com.apple.mrj.application.apple.menu.about.name",
			appName);