I am struggling trying to finish an assignment in my beginner programming class. We have to create a bank account gui. The Account.java file was supplied to us for use within the BankAccount.java file. I have been able to get the BankAccount program to compile, but I don't fully understand what I need to have in the actionPerformed to make sure that both the withdraw and deposit work correctly. As of now, it does have fields to input withdraw and deposit amount but the buttons do nothing. Could someone assist me in being able to get this to work properly?
The description of the assignment is:
Design, implement, and test a GUI for the Account class which represents a bank account. Your GUI should display the account information (account number, name, and balance) of an Account object (instance) with suitable labels. In addition, it should provide inputs and buttons to make deposits and withdrawals, add interest, and quit from the program, by calling the appropriate methods of the Account object. Note that the withdraw method of the Account class requires two arguments: the amount withdrawn, and a withdrawal fee. You get to make a policy decision here, by setting the fee. You could decide the fee will be zero, or a small positive amount (say, 10 cents). Your account GUI class should have a reference to an Account object, which provides the data to be displayed and on which it operates when making deposits, withdrawals, etc. You will need to modify the Account class, adding accessor methods for some private fields.