< prev index next >
src/java.desktop/share/classes/javax/swing/JFrame.java
Print this page
*** 484,507 ****
*
* @beaninfo
* hidden: true
* description: The menubar for accessing pulldown menus from this frame.
*/
! @SuppressWarnings("deprecation")
! public void setJMenuBar(JMenuBar menubar) {
! getRootPane().setMenuBar(menubar);
}
/**
* Returns the menubar set on this frame.
* @return the menubar for this frame
*
* @see #setJMenuBar
*/
- @SuppressWarnings("deprecation")
public JMenuBar getJMenuBar() {
! return getRootPane().getMenuBar();
}
/**
* Returns whether calls to <code>add</code> and
* <code>setLayout</code> are forwarded to the <code>contentPane</code>.
--- 484,505 ----
*
* @beaninfo
* hidden: true
* description: The menubar for accessing pulldown menus from this frame.
*/
! public void setJMenuBar(final JMenuBar menubar) {
! getRootPane().setJMenuBar(menubar);
}
/**
* Returns the menubar set on this frame.
* @return the menubar for this frame
*
* @see #setJMenuBar
*/
public JMenuBar getJMenuBar() {
! return getRootPane().getJMenuBar();
}
/**
* Returns whether calls to <code>add</code> and
* <code>setLayout</code> are forwarded to the <code>contentPane</code>.
< prev index next >