Module org.jpo

Class NavBarButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants
Direct Known Subclasses:
ClockButton, LeftRightButton

public class NavBarButton extends JButton
Extends the default JButton with no border, standard background color, standard dimensions of 24 pixels and tooltip at 0, -20 Uses the Settings.PICTUREVIEWER_BACKGROUND_COLOR for the background.
See Also:
  • Constructor Details

    • NavBarButton

      public NavBarButton(Icon icon)
      Constructs the NavBarButton
      Parameters:
      icon - The icon to show
  • Method Details

    • getToolTipLocation

      public Point getToolTipLocation(MouseEvent event)
      Overriding the position of the tooltip so that it comes 20 pixels above the mouse pointer
      Overrides:
      getToolTipLocation in class JComponent
      Returns:
      the point