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

public class ToolbarButton extends JButton
A standard toolbar button preconfigured and ready to be used with a action..
Author:
Thomas Morgner.
See Also:
  • Constructor Details

    • ToolbarButton

      public ToolbarButton()
      Creates a button with no set text or icon.
    • ToolbarButton

      public ToolbarButton(Icon icon)
      Creates a button with an icon.
      Parameters:
      icon - the Icon image to display on the button
    • ToolbarButton

      public ToolbarButton(String text)
      Creates a button with text.
      Parameters:
      text - the text of the button
    • ToolbarButton

      public ToolbarButton(Action a)
      Creates a button where properties are taken from the Action supplied.
      Parameters:
      a - the Action used to specify the new button
      Since:
      1.3
    • ToolbarButton

      public ToolbarButton(String text, Icon icon)
      Creates a button with initial text and an icon.
      Parameters:
      text - the text of the button
      icon - the Icon image to display on the button
  • Method Details

    • init

      protected void init()