jdk/src/java.desktop/share/classes/javax/swing/JFrame.java
changeset 30933 03b018d18b52
parent 29511 7c491ff8a5fc
child 33253 78e735319356
equal deleted inserted replaced
30932:1588ecb216fd 30933:03b018d18b52
   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>.