Package tethys.swing

Class TippedButton

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

public class TippedButton extends JButton
See Also:
  • Constructor Details

    • TippedButton

      public TippedButton(String text, String enabledTip)
      Create a button with standard tips which will be used for enabled state
      Parameters:
      text -
      enabledTip -
    • TippedButton

      public TippedButton(String text, String enabledTip, String disabledTip)
      Create a button with standard tips which will be used for enabled and disabled state
      Parameters:
      text -
      enabledTip -
      disabledTip -
  • Method Details

    • setEnabled

      public void setEnabled(boolean enable)
      Overrides:
      setEnabled in class AbstractButton
    • disable

      public void disable(String newTip)
    • getEnabledTip

      public String getEnabledTip()
      Returns:
      the enabledTip
    • setEnabledTip

      public void setEnabledTip(String enabledTip)
      Parameters:
      enabledTip - the enabledTip to set
    • getDisabledTip

      public String getDisabledTip()
      Returns:
      the disabledTip
    • setDisabledTip

      public void setDisabledTip(String disabledTip)
      Parameters:
      disabledTip - the disabledTip to set