Package javax.swing.plaf

Examples of javax.swing.plaf.MenuBarUI


    /*
     * Test method for 'javax.swing.JMenuBar.setUI(MenuBarUI)'
     */
    public void testSetUIMenuBarUI() {
        MenuBarUI ui1 = new BasicMenuBarUI();
        MenuBarUI ui2 = new MetalMenuBarUI();
        JMenuBar menuBar = new JMenuBar();
        menuBar.setUI(ui1);
        assertSame(ui1, menuBar.getUI());
        menuBar.setUI(ui2);
        assertSame(ui2, menuBar.getUI());
View Full Code Here


    /*
     * Test method for 'javax.swing.JMenuBar.setUI(MenuBarUI)'
     */
    public void testSetUIMenuBarUI() {
        MenuBarUI ui1 = new BasicMenuBarUI();
        MenuBarUI ui2 = new MetalMenuBarUI();
        JMenuBar menuBar = new JMenuBar();
        menuBar.setUI(ui1);
        assertSame(ui1, menuBar.getUI());
        menuBar.setUI(ui2);
        assertSame(ui2, menuBar.getUI());
View Full Code Here

  /**
   * Uninstalls <code>this</code> title pane.
   */
  public void uninstall() {
    if ((this.menuBar != null) && (this.menuBar.getMenuCount() > 0)) {
      MenuBarUI menuBarUI = this.menuBar.getUI();
      if (menuBarUI instanceof SubstanceMenuBarUI) {
        SubstanceMenuBarUI ui = (SubstanceMenuBarUI) menuBarUI;
        if (ui.getMenuBar() == this.menuBar)
          menuBarUI.uninstallUI(this.menuBar);
      }
      SubstanceCoreUtilities.uninstallMenu(this.menuBar.getMenu(0));
      this.remove(menuBar);
      // fix for issue 362 - remove the buttons so that we don't
      // have duplicate buttons on internal frames in reparented
View Full Code Here

  /**
   * Uninstalls <code>this</code> title pane.
   */
  public void uninstall() {
    if ((this.menuBar != null) && (this.menuBar.getMenuCount() > 0)) {
      MenuBarUI menuBarUI = this.menuBar.getUI();
      if (menuBarUI instanceof SubstanceMenuBarUI) {
        SubstanceMenuBarUI ui = (SubstanceMenuBarUI) menuBarUI;
        if (ui.getMenuBar() == this.menuBar)
          menuBarUI.uninstallUI(this.menuBar);
      }
      SubstanceCoreUtilities.uninstallMenu(this.menuBar.getMenu(0));
      this.remove(menuBar);
      // fix for issue 362 - remove the buttons so that we don't
      // have duplicate buttons on internal frames in reparented
View Full Code Here

TOP

Related Classes of javax.swing.plaf.MenuBarUI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.