equal
deleted
inserted
replaced
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 |