Package jmri.swing

Class JTitledSeparator

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JTitledSeparator extends JPanel
A separator with a title. JTitledSeparator based on https://github.com/rhwood/DJ-Swing-Suite/blob/master/DJSwingSuite/src/chrriis/dj/swingsuite/JTitledSeparator.java by Christopher Deckers (chrriis@nextencia.net) http://www.nextencia.net
See Also:
  • Constructor Details

    • JTitledSeparator

      public JTitledSeparator(String title)
      Construct a separator with a title.
      Parameters:
      title - the title to set.
  • Method Details

    • getTitle

      public String getTitle()
      Get the title of this separator.
      Returns:
      the title.
    • setTitle

      public void setTitle(String title)
      Set the title of the separator.
      Parameters:
      title - the new title.
    • updateUI

      public void updateUI()
      Overrides:
      updateUI in class JPanel