Class ToolBarButton

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

public class ToolBarButton extends JButton
See Also:
  • Constructor Details Link icon

    • ToolBarButton Link icon

      public ToolBarButton(String imageFileName, String toolTip, String actionCommand)
      Constructor
      Parameters:
      imageFileName - the name if the file holding the icon
      toolTip - a string for a tool tip
      container - the owner container.
  • Method Details Link icon

    • canvasCursor Link icon

      public Cursor canvasCursor()
      Get the appropriate cursor for this tool.
      Returns:
      the cursor appropriate when the mouse is in the container (and this button is active).
    • getPreferredSize Link icon

      public Dimension getPreferredSize()
      Get the preferred size.
      Overrides:
      getPreferredSize in class JComponent
      Returns:
      the preferred size for layout.