Class FlatHelpButton

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

public class FlatHelpButton extends FlatButton implements PropertyChangeListener
A help icon button that display text as a dialog when clicked.
See Also:
  • Constructor Details

    • FlatHelpButton

      public FlatHelpButton()
      Equivalent of FlatButton(true, true, false)
    • FlatHelpButton

      public FlatHelpButton(String helpText)
  • Method Details

    • getBaseline

      public int getBaseline(int w, int h)
      Overridden to return -1 (no available baseline since icon-only button).
      Overrides:
      getBaseline in class JComponent
      Parameters:
      w -
      h -
      Returns:
    • setText

      public void setText(String text)
      Overridden to do nothing.
      Overrides:
      setText in class JLabel
      Parameters:
      text -
    • setHelpText

      public final void setHelpText(String text)
      Used as the help text: can be multiline and use html.
      Parameters:
      text -
    • getHelpText

      public String getHelpText()