trying to figure out menu troubles

This commit is contained in:
benfry
2008-05-31 22:45:06 +00:00
parent c31ac109de
commit 1ad2980cef
2 changed files with 4 additions and 2 deletions

View File

@@ -970,7 +970,9 @@ public class Base {
}
}
};
// offers no speed improvement
//menu.addActionListener(listener);
boolean ifound = false;
for (int i = 0; i < list.length; i++) {

View File

@@ -154,7 +154,7 @@ public class Editor extends JFrame {
addWindowListener(new WindowAdapter() {
public void windowActivated(WindowEvent e) {
base.handleActivated(Editor.this);
// re-add the sub-menus that are shared by all windows
fileMenu.insert(sketchbookMenu, 2);
fileMenu.insert(examplesMenu, 3);