Class UrlLabel

All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, SwingConstants

public class UrlLabel extends JLabel implements MouseListener
Label that contains a clickable link.
Since:
6340
See Also:
  • Field Details

  • Constructor Details

    • UrlLabel

      public UrlLabel()
      Constructs a new empty UrlLabel.
    • UrlLabel

      public UrlLabel(String url)
      Constructs a new UrlLabel for the given URL.
      Parameters:
      url - The URL to use, also used as description
    • UrlLabel

      public UrlLabel(String url, int fontPlus)
      Constructs a new UrlLabel for the given URL and font increase.
      Parameters:
      url - The URL to use, also used as description
      fontPlus - The font increase in 1/72 of an inch units.
    • UrlLabel

      public UrlLabel(String url, String description)
      Constructs a new UrlLabel for the given URL and description.
      Parameters:
      url - The URL to use
      description - The description to display
    • UrlLabel

      public UrlLabel(String url, String description, Icon image)
      Constructs a new UrlLabel for the given URL, description and image.
      Parameters:
      url - The URL to use
      description - The description to display
      image - The image to be displayed by the label instead of text
      Since:
      14822
    • UrlLabel

      public UrlLabel(String url, String description, int fontPlus)
      Constructs a new UrlLabel for the given URL, description and font increase.
      Parameters:
      url - The URL to use
      description - The description to display
      fontPlus - The font increase in 1/72 of an inch units.
  • Method Details