Java on Mac OS X

Up

Changes in application menus on OS X 10.4.x

When running a Java application in Mac OS X 10.4.x (Tiger), the apple.laf.useScreenMenuBar property is examined and applied earlier in the application startup sequence than in prior versions of the operating system. Thus setting this property to true in your application's GUI startup code may have no effect. Accordingly, you should set this property in one of the following ways:

  1. In the Info.plist file
  2. As an argument to the java command; e.g., -Dapple.laf.useScreenMenuBar=true

If you are developing in the Netbeans environment, you can do the following. Note that this example comes from version 4.1 of Netbeans.


Page last modified on June 10, 2005, at 11:07 AM