JSeparator : Java Glossary


A Swing JComponent that lets you draw a horizontal or vertical rule in a layout. Note the spelling. American programmers often tend to turn the a or o vowels into es. If your separator is not visible, make sure you packed or validated your layout to assign it a size. Most commonly used to add dividers in JMenus.
// Using a JSeparator
import javax.swing.JSeparator;
// ...
JSeparator vertical = new JSeparator( JSeparator.VERTICAL );

myPanel.add( vertical, constraints );

Learning More

Oracle’s Javadoc on JSeparator class : available:

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number