improve MacOSX native LAF: set the application name for the menu bar and the dock.
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.quicksetup.installer; |
| | | |
| | |
| | | { |
| | | public void run() |
| | | { |
| | | // Setup MacOSX native menu bar before AWT is loaded. |
| | | Utils.setMacOSXMenuBar(getMsg("frame-install-title")); |
| | | SplashScreen.main(args); |
| | | returnValue[0] = 0; |
| | | } |
| | |
| | | { |
| | | public void run() |
| | | { |
| | | // Setup MacOSX native menu bar before AWT is loaded. |
| | | Utils.setMacOSXMenuBar(getMsg("frame-uninstall-title")); |
| | | SplashScreen.main(args); |
| | | returnValue[0] = 0; |
| | | } |
| | |
| | | { |
| | | return MAX_LINE_WIDTH; |
| | | } |
| | | |
| | | /** |
| | | * Puts Swing menus in the Mac OS menu bar, if using the Aqua look and feel, |
| | | * and sets the application name that is displayed in the application menu |
| | | * and in the dock. |
| | | * @param appName |
| | | * application name to display in the menu bar and the dock. |
| | | */ |
| | | public static void setMacOSXMenuBar(String appName) |
| | | { |
| | | System.setProperty("apple.laf.useScreenMenuBar", "true"); |
| | | System.setProperty("com.apple.mrj.application.apple.menu.about.name", |
| | | appName); |
| | | } |
| | | } |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2007 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.statuspanel; |
| | | |
| | |
| | | { |
| | | public void run() |
| | | { |
| | | // Setup MacOSX native menu bar before AWT is loaded. |
| | | Utils.setMacOSXMenuBar(getMsg("statuspanel-dialog-title")); |
| | | SplashScreen.main(args); |
| | | returnValue[0] = 0; |
| | | } |