javax.swing
public class JSeparator extends JComponent implements SwingConstants, Accessible
| Nested Class Summary | |
|---|---|
| protected class | JSeparator.AccessibleJSeparator
Provides the accessibility features for the JSeparator
component. |
| Constructor Summary | |
|---|---|
| JSeparator()
Creates a new horizontal JSeparator object. | |
| JSeparator(int orientation)
Creates a new JSeparator object with the given orientation.
| |
| Method Summary | |
|---|---|
| AccessibleContext | getAccessibleContext()
Returns the object that provides accessibility features for this
JSeparator component.
|
| int | getOrientation()
Returns the orientation of the JSeparator.
|
| SeparatorUI | getUI()
Returns the UI delegate being used with the JSeparator.
|
| String | getUIClassID()
Returns the suffix ( "SeparatorUI" in this case) used to
determine the class name for a UI delegate that can provide the look and
feel for a JSeparator.
|
| protected String | paramString()
Returns an implementation-dependent string describing the attributes of
this JSeparator.
|
| void | setOrientation(int orientation)
Sets the orientation for the JSeparator and sends a
{@link PropertyChangeEvent} (with the property name
orientation) to all registered listeners.
|
| void | setUI(SeparatorUI ui)
Sets the separator's UI delegate.
|
| void | updateUI()
Sets this separator's UI delegate to the default (obtained from the
{@link UIManager}) for the current look and feel. |
JSeparator object.JSeparator object with the given orientation.
Parameters: orientation the orientation (either {@link #HORIZONTAL} or {@link #VERTICAL}).
Throws: IllegalArgumentException if orientation is not
one of the specified values.
JSeparator component.
Returns: The accessible context (an instance of {@link AccessibleJSeparator}).
JSeparator.
Returns: The orientation (one of {@link #HORIZONTAL} and {@link #VERTICAL}).
See Also: JSeparator
JSeparator.
Returns: The JSeparator's UI delegate.
"SeparatorUI" in this case) used to
determine the class name for a UI delegate that can provide the look and
feel for a JSeparator.
Returns: "SeparatorUI".
JSeparator.
Returns: A string describing the attributes of this JSeparator
(never null).
JSeparator and sends a
{@link PropertyChangeEvent} (with the property name
orientation) to all registered listeners.
Parameters: orientation the orientation (either {@link #HORIZONTAL} or {@link #VERTICAL}).
Throws: IllegalArgumentException if orientation is not
one of the specified values.
See Also: getOrientation
Parameters: ui the UI delegate.