List of usage examples for javax.swing JToolBar remove
public void remove(int index)
From source file:edu.ku.brc.af.core.TaskMgr.java
public static void removeToolbarBtn(final Component toolBarComp) { JToolBar toolBar = (JToolBar) UIRegistry.get(UIRegistry.TOOLBAR); if (toolBar != null) { toolBar.remove(toolBarComp); }//from w ww.j a v a2 s. c o m }