public JToolBar (String name, int orientation)

Creates a new tool bar with a specified name and orientation. All other constructors call this constructor. If orientation is an invalid value, an exception will be thrown.

name    the name of the tool bar
orientation    the initial orientation -- it must be either HORIZONTAL or VERTICAL

IllegalArgumentException    if orientation is neither HORIZONTAL nor VERTICAL

Since:  1.3