Class JPlainToggleButton

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

public class JPlainToggleButton extends JToggleButton
See Also:
  • Field Details

    • selectedText

      protected String selectedText
    • selectedToolTipText

      protected String selectedToolTipText
    • text

      protected String text
    • toolTipText

      protected String toolTipText
  • Constructor Details

    • JPlainToggleButton

      public JPlainToggleButton(Action a)
    • JPlainToggleButton

      public JPlainToggleButton(Icon icon)
    • JPlainToggleButton

      public JPlainToggleButton(Icon icon, Icon rolloverIcon)
  • Method Details

    • getSelectedText

      public String getSelectedText()
    • setSelectedText

      public void setSelectedText(String selectedText)
    • getSelectedToolTipText

      public String getSelectedToolTipText()
    • setSelectedToolTipText

      public void setSelectedToolTipText(String selectedToolTipText)
    • setBorder

      public void setBorder(Border border)
      Switching L&F sometimes sets an awfully wide border, so lets disable this
      Overrides:
      setBorder in class JComponent
    • setRealBorder

      public void setRealBorder(Border border)
      Switching L&F sometimes sets an awfully wide border, so setBorder is disabled on this component. This method allows you to set the border
      Parameters:
      border -