Java javax.swing JSeparator fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JSeparator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JSeparator.

The text is from its open source code.

Constructor

JSeparator(int orientation)
Creates a new separator with the specified horizontal or vertical orientation.
JSeparator()
Creates a new horizontal separator.

Method

DimensiongetPreferredSize()
If the preferredSize has been set to a non-null value just returns it.
voidsetBackground(Color bg)
Sets the background color of this component.
voidsetBounds(int x, int y, int width, int height)
Moves and resizes this component.
voidsetForeground(Color fg)
Sets the foreground color of this component.
voidsetMaximumSize(Dimension maximumSize)
Sets the maximum size of this component to a constant value.
voidsetMinimumSize(Dimension minimumSize)
Sets the minimum size of this component to a constant value.
voidsetName(String name)
Sets the name of the component to the specified string.
voidsetOrientation(int orientation)
Sets the orientation of the separator.
voidsetPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.
voidsetSize(Dimension d)
Resizes this component so that it has width d.width and height d.height .
voidsetVisible(boolean aFlag)
Makes the component visible or invisible.