Class Main.Transactions

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
Main

class Main.Transactions extends JPanel
Inner class representing the transactions panel. It displays the user's transactions.

It creates a JPanel for each transaction and adds them to itself. Each transaction panel contains the title, value, and sender or destination of the transaction.

The Transactions object is created in the constructor and added to a JScrollPane.
  • Field Details

    • currentUser

      User currentUser
      User object representing the current user.
    • gbLayout

      GridBagLayout gbLayout
      GridBagLayout for the transactions panel.
    • gridBagConstraints

      GridBagConstraints gridBagConstraints
      GridBagConstraints object for layout management.
    • transaction

      JPanel transaction
      Panel for each transaction.
    • caption

      JLabel caption
      Label for the title of the transactions panel.
    • title

      JLabel title
      Label for the title of the transaction.
    • value

      JLabel value
      Label for the value of the transaction.
    • sender

      JLabel sender
      Label for the sender of the transaction.
    • destination

      JLabel destination
      Label for the destination of the transaction.
  • Constructor Details

    • Transactions

      Transactions()
      Constructs a Transactions object.