Class Navigation

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Navigation extends JPanel
Navigation class represents a navigation panel with buttons for the Main, Jars, and Settings screens.
See Also:
  • Field Details

    • homeBtn

      JButton homeBtn
      Button to navigate to the Main screen.
    • jarsBtn

      JButton jarsBtn
      Button to navigate to the Jars screen.
    • settingsBtn

      JButton settingsBtn
      Button to navigate to the Settings screen.
  • Constructor Details

    • Navigation

      Navigation()
      Constructs a Navigation object.
  • Method Details

    • homeHandler

      void homeHandler(ActionEvent event)
      Handles the action of the home button. This method is called when the home button is clicked. It switches the layout to show the main screen.
      Parameters:
      event - the event that triggered the action
    • jarsHandler

      void jarsHandler(ActionEvent event)
      Handles the action of the jars button. This method is called when the jars button is clicked. It switches the layout to show the jars screen.
      Parameters:
      event - the event that triggered the action
    • settingsHandler

      void settingsHandler(ActionEvent event)
      Handles the action of the settings button. This method is called when the settings button is clicked. It switches the layout to show the settings screen.
      Parameters:
      event - the event that triggered the action