Assignment Three
This assignment is
to modify Assignment Two in the following ways:
·
Use a JLabel and JTextField combination to get the
input instead of a JOptionPane. Make sure the input is all digits. If the input
is not all digits pop up a JOptionPane informing the user to input all digits.
·
Modify the withdrawal method of the BankAccount class
to check for an invalid withdrawal i.e. if the withdrawal amount exceeds the
balance do not do the withdrawal and pop up a JOptionPane informing the user
that the transaction is cancelled.
·
When Enter is pressed in the JTextField above use a
second JLabel to display the amount entered. After the transaction is processed
display No Amount Entered in the JLabel.
Your display could look like

and

and

Look
at GUIPattern3.java.
This
assignment is due on Wednesday June 2nd. Hand in the usual and there
will be a quiz at the beginning of class.