JSeparator

Palette category
Swing
Palette bean
JSeparator
Project
JFC class libraries
Package
com.sun.java.swing
Type
JSeparator

Use a JSeparator bean to visually separate other components. It is commonly used to draw a horizontal line between groups of related choices in a menu, but can also be used to separate components on a panel.

Use a MenuSeparator bean, rather than a JSeparator bean, if you want to use it in an AWT menu. Although Swing and AWT beans can be mixed, it is inadvisable.


Related procedures
Adding a Menu or Tool Bar

Related references
Menu and Tool Bar Beans
Beans for Visual Composition