Lines Matching defs:menuBar
82 * an optional <code>menuBar</code>, and a <code>contentPane</code>.
83 * (The <code>JLayeredPane</code> manages the <code>menuBar</code>
93 * Although the <code>menuBar</code> component is optional,
149 * <LI>The <code>menuBar</code> is positioned at the upper edge of the
152 * minus the <code>menuBar</code>, if present.
302 protected JMenuBar menuBar;
566 if(menuBar != null && menuBar.getParent() == layeredPane)
567 layeredPane.remove(menuBar);
568 menuBar = menu;
570 if(menuBar != null)
571 layeredPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER);
582 if(menuBar != null && menuBar.getParent() == layeredPane)
583 layeredPane.remove(menuBar);
584 menuBar = menu;
586 if(menuBar != null)
587 layeredPane.add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER);
594 public JMenuBar getJMenuBar() { return menuBar; }
603 public JMenuBar getMenuBar() { return menuBar; }
892 * layeredPane, glassPane, and menuBar.
921 if(menuBar != null && menuBar.isVisible()) {
922 mbd = menuBar.getPreferredSize();
945 if(menuBar != null && menuBar.isVisible()) {
946 mbd = menuBar.getMinimumSize();
964 if(menuBar != null && menuBar.isVisible()) {
965 mbd = menuBar.getMaximumSize();
1002 if(menuBar != null && menuBar.isVisible()) {
1003 Dimension mbd = menuBar.getPreferredSize();
1004 menuBar.setBounds(0, 0, w, mbd.height);