tweaks to editor based on feedback

This commit is contained in:
benfry
2004-10-10 01:01:34 +00:00
parent 3b8789e316
commit efbf7e299f
9 changed files with 100 additions and 54 deletions

View File

@@ -830,7 +830,7 @@ implements MRJAboutHandler, MRJQuitHandler, MRJPrefsHandler
* Convenience method for the antidote to overthought
* swing api mess for setting accelerators.
*/
static public JMenuItem newJMenuItem(String title, char what) {
static public JMenuItem newJMenuItem(String title, int what) {
return newJMenuItem(title, what, false);
}
@@ -842,7 +842,7 @@ implements MRJAboutHandler, MRJQuitHandler, MRJPrefsHandler
* helpher function to *set the command key* for a menu item.
*/
static public JMenuItem newJMenuItem(String title,
char what, boolean shift) {
int what, boolean shift) {
JMenuItem menuItem = new JMenuItem(title);
int modifiers = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
if (shift) modifiers |= ActionEvent.SHIFT_MASK;