Java JToolBar createToolBar()

Here you can find the source of createToolBar()

Description

create Tool Bar

License

Creative Commons License

Declaration

public static JToolBar createToolBar() 

Method Source Code

//package com.java2s;
//License from project: Creative Commons License 

import javax.swing.BorderFactory;

import javax.swing.JToolBar;

public class Main {
    public static JToolBar createToolBar() {
        JToolBar tb = new JToolBar();
        tb.setFloatable(false);//from  w  w  w  .  ja v  a  2  s.c om
        tb.setRollover(true);
        tb.setBorder(BorderFactory.createEmptyBorder(1, 0, 0, 0));
        return tb;
    }
}

Related

  1. addToolBarButton(JToolBar toolbar, Action action, String tooltip, Icon icon)
  2. addToolBarButton(JToolBar toolbar, Action action, String tooltip, Icon icon, String lbl)
  3. addToolItems(JToolBar toolBar, JComponent... items)
  4. buildToolbar(final JToolBar toolbar, final List components)
  5. createDefaultToolBar()
  6. createToolbar()
  7. fixButton(AbstractButton button, String toolTip)
  8. floatToolBar(JToolBar tb, Point p)
  9. formatToolBar(JToolBar toolbar, int style)