Example usage for javax.swing JToolBar remove

List of usage examples for javax.swing JToolBar remove

Introduction

In this page you can find the example usage for javax.swing JToolBar remove.

Prototype

public void remove(int index) 

Source Link

Document

Removes the component, specified by index , from this container.

Usage

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
}