public JSeparator (int orientation)

Creates a new separator with the specified horizontal or vertical orientation.

Parameters:
orientation    an integer specifying SwingConstants.HORIZONTAL or SwingConstants.VERTICAL

Exceptions:
IllegalArgumentException    if orientation is neither SwingConstants.HORIZONTAL nor SwingConstants.VERTICAL