From 18739044793be53120ce94cdb6cb67033e4e9c9d Mon Sep 17 00:00:00 2001 From: Fredrik Osterlind Date: Fri, 1 Jun 2012 12:26:18 +0200 Subject: [PATCH] fixed Tools menu mnemonic (P->T) --- tools/cooja/java/se/sics/cooja/GUI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/GUI.java b/tools/cooja/java/se/sics/cooja/GUI.java index 5c0688453..a7c5dd166 100644 --- a/tools/cooja/java/se/sics/cooja/GUI.java +++ b/tools/cooja/java/se/sics/cooja/GUI.java @@ -369,6 +369,7 @@ public class GUI extends Observable { myDesktopPane = desktop; if (menuPlugins == null) { menuPlugins = new JMenu("Tools"); + menuPlugins.setMnemonic(KeyEvent.VK_T); menuPlugins.removeAll(); /* COOJA/GUI plugins at top, simulation plugins in middle, mote plugins at bottom */ @@ -785,7 +786,6 @@ public class GUI extends Observable { public void menuCanceled(MenuEvent e) { } }); - menu.setMnemonic(KeyEvent.VK_T); menuBar.add(menu); // Mote type classes sub menu @@ -921,7 +921,7 @@ public class GUI extends Observable { } else { menuPlugins.setText("Tools"); } - menuPlugins.setMnemonic(KeyEvent.VK_P); + menuPlugins.setMnemonic(KeyEvent.VK_T); menuBar.add(menuPlugins); menuPlugins.addMenuListener(new MenuListener() { public void menuSelected(MenuEvent e) {