Menu:

7-Mar-2008 Latest component update.

TitleSeparator

component iconJTitleSeparator is a horizontal line separator with a title. The title can be aligned left, right or center. The JTitleSeparator class extends the Swing JPanel component.

title separators
Title separator components in different configurations

Creation

public JTitleSeparator()
public JTitleSeparator(String title)
public JTitleSeparator(String title, ImageIcon image)
public JTitleSeparator(String title, ImageIcon image, 
    int alignment)

The default constructor creates an empty title separator. The other constructors allow you to specify a title, image or alignment.

Methods

public String getTitle()
public void setTitle(String title)
public ImageIcon getImage()
public void setImage(ImageIcon image)

The provided accessors allow you to read and update the title and image of a JTitleSeparator object.