class VizToolbar extends JToolBar {

    public VizToolbar(VizToolbarGroup[] groups) {
        initDesign();

        for (VizToolbarGroup g : groups) {
            addSeparator();
            for (JComponent c : g.getToolbarComponents()) {
                add(c);
            }
        }
    }

    private void initDesign() {
        setFloatable(false);
        putClientProperty("JToolBar.isRollover", Boolean.TRUE); //NOI18N
        setBorder(BorderFactory.createEmptyBorder(2, 0, 4, 0));
        setOpaque(true);
    }

    public void setEnable(final boolean enabled) {<FILL_FUNCTION_BODY>}

    @Override
    public Component add(Component comp) {
        if (comp instanceof JButton) {
            UIUtils.fixButtonUI((JButton) comp);
        }

        return super.add(comp);
    }
}

        SwingUtilities.invokeLater(new Runnable() {

            @Override
            public void run() {
                for (Component c : getComponents()) {
                    c.setEnabled(enabled);
                }
            }
        });
    
<methods>public void <init>() ,public void <init>(int) ,public void <init>(java.lang.String) ,public void <init>(java.lang.String, int) ,public javax.swing.JButton add(javax.swing.Action) ,public void addSeparator() ,public void addSeparator(java.awt.Dimension) ,public javax.accessibility.AccessibleContext getAccessibleContext() ,public java.awt.Component getComponentAtIndex(int) ,public int getComponentIndex(java.awt.Component) ,public java.awt.Insets getMargin() ,public int getOrientation() ,public javax.swing.plaf.ToolBarUI getUI() ,public java.lang.String getUIClassID() ,public boolean isBorderPainted() ,public boolean isFloatable() ,public boolean isRollover() ,public void setBorderPainted(boolean) ,public void setFloatable(boolean) ,public void setLayout(java.awt.LayoutManager) ,public void setMargin(java.awt.Insets) ,public void setOrientation(int) ,public void setRollover(boolean) ,public void setUI(javax.swing.plaf.ToolBarUI) ,public void updateUI() <variables>private boolean floatable,private java.awt.Insets margin,private int orientation,private boolean paintBorder,private static final java.lang.String uiClassID