Class Jars

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Jars extends JPanel
Jars class represents the Jars screen in the application. It displays the user's jars and allows them to create new jars, deposit to jars, and withdraw from jars.
See Also:
  • Field Details

  • Constructor Details

    • Jars

      Jars()
      Constructs a Jars object.
  • Method Details

    • createJarHandler

      private void createJarHandler(ActionEvent event)
      Handles the action event when the create jar button is clicked. This method switches the view to the create jar screen.
      Parameters:
      event - The action event triggered when the create jar button is clicked.
    • depositToJarHandler

      private void depositToJarHandler(ActionEvent event)
      Handles the action event when the deposit to jar button is clicked. This method switches the view to the deposit to jar screen.
      Parameters:
      event - The action event triggered when the deposit to jar button is clicked.
    • updateUI

      public void updateUI()
      Updates the UI components with the current user's information.
      Overrides:
      updateUI in class JPanel