There are several kinds of Toolbars :
1. A Toolbar which has set of buttons which the buttons shows the square borders
JToolBar x = new JToolBar();
JButton b1 = new JButton();
JButton b2 = new JButton();
2. Another version of a JToolBar is a Toolbar which has a set of tools but doesnt shows
the square borders like JButtons, here is a sample :
How do I make a JToolBar like the one on the link ?