Class DefaultComponentFactory.TitleLabel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants
Enclosing class:
DefaultComponentFactory

private static final class DefaultComponentFactory.TitleLabel extends DefaultComponentFactory.FormsLabel
A label that uses the TitleBorder font and color.
  • Constructor Details

    • TitleLabel

      private TitleLabel()
  • Method Details

    • updateUI

      public void updateUI()
      TODO: For the Synth-based L&f we should consider asking a TitledBorder instance for its font and color using #getTitleFont and #getTitleColor resp.
      Overrides:
      updateUI in class JLabel
    • getTitleColor

      private static Color getTitleColor()
    • getTitleFont

      private static Font getTitleFont()
      Looks up and returns the font used for title labels. Since Mac Aqua uses an inappropriate titled border font, we use a bold label font instead. Actually if the title is used in a titled separator, the bold weight is questionable. It seems that most native Aqua tools use a plain label in titled separators.
      Returns:
      the font used for title labels