equal
deleted
inserted
replaced
484 * |
484 * |
485 * @beaninfo |
485 * @beaninfo |
486 * hidden: true |
486 * hidden: true |
487 * description: The menubar for accessing pulldown menus from this frame. |
487 * description: The menubar for accessing pulldown menus from this frame. |
488 */ |
488 */ |
489 @SuppressWarnings("deprecation") |
489 public void setJMenuBar(final JMenuBar menubar) { |
490 public void setJMenuBar(JMenuBar menubar) { |
490 getRootPane().setJMenuBar(menubar); |
491 getRootPane().setMenuBar(menubar); |
|
492 } |
491 } |
493 |
492 |
494 /** |
493 /** |
495 * Returns the menubar set on this frame. |
494 * Returns the menubar set on this frame. |
496 * @return the menubar for this frame |
495 * @return the menubar for this frame |
497 * |
496 * |
498 * @see #setJMenuBar |
497 * @see #setJMenuBar |
499 */ |
498 */ |
500 @SuppressWarnings("deprecation") |
|
501 public JMenuBar getJMenuBar() { |
499 public JMenuBar getJMenuBar() { |
502 return getRootPane().getMenuBar(); |
500 return getRootPane().getJMenuBar(); |
503 } |
501 } |
504 |
502 |
505 /** |
503 /** |
506 * Returns whether calls to <code>add</code> and |
504 * Returns whether calls to <code>add</code> and |
507 * <code>setLayout</code> are forwarded to the <code>contentPane</code>. |
505 * <code>setLayout</code> are forwarded to the <code>contentPane</code>. |