Package view

Class HamburgerMenu

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class HamburgerMenu extends JPanel
Implementation of HamburgerMenu component.
See Also:
  • Constructor Details

    • HamburgerMenu

      public HamburgerMenu(JFrame frame)
      Constructs a new HamburgerMenu instance.
      Parameters:
      frame - the parent frame of the menu
  • Method Details

    • paintComponent

      protected void paintComponent(Graphics g)
      The paintComponent method of the class.
      Overrides:
      paintComponent in class JComponent
      Parameters:
      g - graphics we use
    • attachActionListener

      public void attachActionListener(int idx, ActionListener e)
      Adds an ActionListener to a button in the menu.
      Parameters:
      idx - the index of the button
      e - the ActionListener we want to add