Package javax.swing

Examples of javax.swing.JToolBar.removeAll()


          && ((AbstractButton)component).getAction().
                getValue(PluginAction.Property.TOOL_BAR.name()) == Boolean.TRUE) {
        pluginButtons.add(component);
      }
    }
    toolBar.removeAll();
    // Add New, Open, Save, Save as buttons if they are enabled
    Action newHomeAction = getToolBarAction(homeView, HomeView.ActionType.NEW_HOME);
    if (newHomeAction != null && newHomeAction.isEnabled()) {
      toolBar.add(newHomeAction);
    }
View Full Code Here


              new JToolBar(set.getAttachedObject() == null ? set.getId() : set
              .getAttachedObject().getLabel());
    } else {
      toolbar.setName(set.getAttachedObject() == null ? set.getId() : set
              .getAttachedObject().getLabel());
      toolbar.removeAll();
    }

    for (int i = 0; i < set.getChildCount(); i++) {
      URLTreeNode<IAction> a = (URLTreeNode<IAction>) set.getChildAt(i);
      if (!a.isLeaf()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.