Class GDHtmlLabel

All Implemented Interfaces:
GComponent, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, SwingConstants
Direct Known Subclasses:
AbstractGCellRenderer

public class GDHtmlLabel extends AbstractHtmlLabel
A 'dynamic' label (the text can be changed), with HTML rendering allowed.

Clients do not need to prefix label text with "<html>", as is required for a standard JLabel.

See also:

ClassMutable textHTML renderingDescription
GLabelImmutableNONon-html unchangeable label
GDLabelMutableNONon-html changeable label
GHtmlLabelImmutableYESHtml unchangeable label
GDHtmlLabelMutableYESHtml changeable label
GIconLabelN/ANOLabel that only has an icon image, no text
Other components of note:
GCheckBoxNONon-html checkbox
GHtmlCheckBoxYESHtml checkbox
See Also:
  • Constructor Details

    • GDHtmlLabel

      public GDHtmlLabel()
      Creates a label with no image and no text, with SwingConstants.LEADING horizontal alignment, with HTML rendering allowed.

      See JLabel().

    • GDHtmlLabel

      public GDHtmlLabel(String text)
      Creates a label with the specified text, with SwingConstants.LEADING horizontal alignment, with HTML rendering allowed.

      See JLabel(String).

      Parameters:
      text - string to be displayed by the label