JavaTM 2 Platform
Std. Ed. v1.3.1

com.apple.mrj
Class MRJMenuUtils

java.lang.Object
  |
  +--com.apple.mrj.MRJMenuUtils

Deprecated. Please use java.awt.MenuItem.setShortcut instead.

public class MRJMenuUtils
extends Object

This is a highly deprecated way to set menu item command key equivalents. It had some use with Java 1.0 because the AWT API didn't include any way to do it. As of Java 1.1 it is unnecessary.

See Also:
MenuItem.getShortcut()

Constructor Summary
MRJMenuUtils()
          Deprecated.  
 
Method Summary
static void setMenuItemCmdKey(Menu menu, int itemIndex, char ch)
          Deprecated. Please use java.awt.MenuItem.setShortcut instead.
static void setMenuItemCmdKey(MenuItem item, char ch)
          Deprecated. Please use java.awt.MenuItem.setShortcut instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MRJMenuUtils

public MRJMenuUtils()
Deprecated. 
Method Detail

setMenuItemCmdKey

public static final void setMenuItemCmdKey(Menu menu,
                                           int itemIndex,
                                           char ch)
Deprecated. Please use java.awt.MenuItem.setShortcut instead.

Set the menu item command key equivilent to the specified character. This only works on installed menu items. itemIndex is 0 based.
See Also:
MenuItem.setShortcut(java.awt.MenuShortcut)

setMenuItemCmdKey

public static final void setMenuItemCmdKey(MenuItem item,
                                           char ch)
Deprecated. Please use java.awt.MenuItem.setShortcut instead.

Set the menu item command key equivilent to the specified character. This only works on installed menu items.
See Also:
MenuItem.setShortcut(java.awt.MenuShortcut)

JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.