Logo Search packages:      
Sourcecode: fex version File versions  Download package

JMenuBar fix::AppletFrame::getMainMenuBar (  )  [inline, private]

Initializes mainMenuBar

Returns:
javax.swing.JMenuBar

Definition at line 441 of file AppletFrame.java.

References createImageIcon(), getFileMenu(), and getOptionMenu().

Referenced by initialize().

                                        {
            if (mainMenuBar == null) {
                  exitImg = createImageIcon("/icons/exit.png", "Exit Icon");
                  reseImg = createImageIcon("/icons/rese.png", "Reset Icon");
                  infoImg = createImageIcon("/icons/info.png", "Info Icon");
                  mainMenuBar = new JMenuBar();
                  mainMenuBar.add(getFileMenu());
                  mainMenuBar.add(getOptionMenu());
                  mainMenuBar.add(getFileMenu());
                  mainMenuBar.add(getOptionMenu());
            }
            return mainMenuBar;
      }


Generated by  Doxygen 1.6.0   Back to index