Index: Actions.java =================================================================== RCS file: /cvs/openide/src/org/openide/awt/Actions.java,v retrieving revision 1.65 diff -c -r1.65 Actions.java *** Actions.java 29 Jul 2002 15:11:06 -0000 1.65 --- Actions.java 21 Aug 2002 10:07:28 -0000 *************** *** 200,206 **** } else { item.setText(text.substring(0, i) + text.substring(i + 1)); if (useMnemonic) { ! item.setMnemonic(text.charAt(i + 1)); } } } --- 200,221 ---- } 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); ! } ! } catch (java.util.MissingResourceException ex) { ! // ok just set the character ! item.setMnemonic(ch); ! } } } }