Class JLinkLabel

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

public class JLinkLabel extends JLabel
Swing component that produces a graphical link to a URL. Will launch the default browser when clicked.
See Also:
  • Constructor Details

    • JLinkLabel

      public JLinkLabel()
    • JLinkLabel

      public JLinkLabel(JComponent comp, String text)
      Construct a JLinkLabel that navigates the user to various UI components
      Parameters:
      comp -
      text -
      Since:
      31.1.4
    • JLinkLabel

      public JLinkLabel(String text)
    • JLinkLabel

      public JLinkLabel(String url, String text)
    • JLinkLabel

      public JLinkLabel(String url, String text, String tooltip)
    • JLinkLabel

      public JLinkLabel(Action action)
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • doClick

      public void doClick()
      For robots
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • setURL

      public void setURL(String newURL)
    • getURL

      public String getURL()
    • getURI

      public URI getURI()
      Returns:
      properly URL encoded URI
      Since:
      18.4
    • getIOException

      public Exception getIOException()
    • clearIOException

      public void clearIOException()
    • removeActionListener

      public void removeActionListener(ActionListener l)
    • addActionListener

      public void addActionListener(ActionListener l)
    • fireActionPerformed

      protected void fireActionPerformed(ActionEvent e)