Index: openide/src/org/openide/awt/Actions.java =================================================================== RCS file: /cvs/openide/src/org/openide/awt/Actions.java,v retrieving revision 1.64 diff -c -r1.64 Actions.java *** openide/src/org/openide/awt/Actions.java 9 Jul 2002 14:40:37 -0000 1.64 --- openide/src/org/openide/awt/Actions.java 21 Aug 2002 19:49:16 -0000 *************** *** 200,206 **** } else { item.setText(text.substring(0, i) + text.substring(i + 1)); if (useMnemonic) { ! item.setMnemonic(text.charAt(i + 1)); } } } --- 200,223 ---- } else { item.setText(text.substring(0, i) + text.substring(i + 1)); if (useMnemonic) { ! char ch = text.charAt(i + 1); ! java.util.ResourceBundle bundle = org.openide.util.NbBundle.getBundle (Actions.class); ! try { ! String s = bundle.getString("MNEMONIC_" + ch); // NOI18N ! if (s.length () == 1) { ! // associated is a character ! item.setMnemonic (s.charAt (0)); ! } else { ! // associated should be an integer ! int vkcode = Integer.parseInt(s); ! item.setMnemonic (vkcode); ! } ! // not i+1, because we've cut the "&" ! item.setDisplayedMnemonicIndex(i); ! } catch (java.util.MissingResourceException ex) { ! // ok just set the character ! item.setMnemonic(ch); ! } } } }