jdk/src/java.desktop/share/classes/javax/swing/JDialog.java
changeset 28231 b608ffcaed74
parent 25859 3317bb8137f4
child 30933 03b018d18b52
equal deleted inserted replaced
28230:f488c331f610 28231:b608ffcaed74
   847     *
   847     *
   848     * @beaninfo
   848     * @beaninfo
   849     *      hidden: true
   849     *      hidden: true
   850     * description: The menubar for accessing pulldown menus from this dialog.
   850     * description: The menubar for accessing pulldown menus from this dialog.
   851     */
   851     */
       
   852     @SuppressWarnings("deprecation")
   852     public void setJMenuBar(JMenuBar menu) {
   853     public void setJMenuBar(JMenuBar menu) {
   853         getRootPane().setMenuBar(menu);
   854         getRootPane().setMenuBar(menu);
   854     }
   855     }
   855 
   856 
   856    /**
   857    /**
   857     * Returns the menubar set on this dialog.
   858     * Returns the menubar set on this dialog.
   858     *
   859     *
   859     * @return the menubar set on this dialog
   860     * @return the menubar set on this dialog
   860     * @see #setJMenuBar
   861     * @see #setJMenuBar
   861     */
   862     */
       
   863     @SuppressWarnings("deprecation")
   862     public JMenuBar getJMenuBar() {
   864     public JMenuBar getJMenuBar() {
   863         return getRootPane().getMenuBar();
   865         return getRootPane().getMenuBar();
   864     }
   866     }
   865 
   867 
   866 
   868