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

public class MenuButton extends JButton
Button used in all the menus.
See Also:
  • Constructor Details

    • MenuButton

      public MenuButton(String filename, String label, GameMenu menu)
      Creates a MenuButton instance: the button reacts to mouse by changing color if selected.
      Parameters:
      filename - image path.
      label - text of the button.
      menu - parent reference.
  • Method Details

    • getImage

      public Image getImage()
      Gets image.
      Returns:
      the image