Class Main

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Main extends Api
Main class represents the Main screen of the application. It displays the user's name, balance, and a list of their transactions. It also provides buttons for depositing and sending money.
See Also:
  • Field Details

  • Constructor Details

    • Main

      Main()
      Constructs a Main object.
  • Method Details

    • updateUI

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

      private void deposit(ActionEvent e)
      Handles the action of the deposit button. This method is called when the deposit button is clicked. It switches the view to the deposit screen.
      Parameters:
      e - the event that triggered the action
    • send

      private void send(ActionEvent e)
      Handles the action of the send button. This method is called when the send button is clicked. It switches the view to the send screen.
      Parameters:
      e - the event that triggered the action