Class GIconLabel

All Implemented Interfaces:
GComponent, ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants
Direct Known Subclasses:
ClearFilterLabel, StatusBarSpacer

public class GIconLabel extends GLabel implements GComponent
A label that only contains an image and no text.

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

  • Method Details

    • setText

      @Deprecated public void setText(String text)
      Deprecated.
      This is a half-way method of turning this label into an immutable instance.

      If the user has a type of "GIconLabel", they will see the deprecated warning on calls to setText().

      If there are calls to setText() with any non-null or non-empty value, a warning will be printed in the log.

      Overrides:
      setText in class GLabel
      Parameters:
      text - string this label will NOT display