Class ToolBarButton

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

public class ToolBarButton extends JButton
See Also:
  • Constructor Details

    • ToolBarButton

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

    • canvasCursor

      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

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