Package editor

Class ToggleToolBarButton

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

public class ToggleToolBarButton extends JToggleButton
See Also:
  • Field Details

    • XP_BORDER_COLOR

      public static final Color XP_BORDER_COLOR
  • Constructor Details

    • ToggleToolBarButton

      public ToggleToolBarButton(String text, Icon icon)
      Creates a button with an icon.
      Parameters:
      icon - The icon that should be display for this button.
    • ToggleToolBarButton

      public ToggleToolBarButton(Icon icon)
    • ToggleToolBarButton

      public ToggleToolBarButton(String text)
    • ToggleToolBarButton

      public ToggleToolBarButton()
    • ToggleToolBarButton

      public ToggleToolBarButton(Action action)
      Creates a button from an action and displays only the action's icon, not the name (unless the icon is null, in which case the name will be displayed).
      Parameters:
      action - the Action associated with this button
  • Method Details