Fred Kleinschmidt wrote:Your button action listener creates a new instance of Account, discarding any previous instance that may have existed. Then it does nothing with it. What is it that you expect or want to happen?
Basically i'm doing an assignment which wants the following:
Please recall Exercise 1 from Exercise Sheet 6 issued in week 9.
Write a graphical user interface (GUI) form using JFrame as demonstrated in the lecture. In your
form the user should be able to enter a name, address, the current balance and the credit limit data.
When the user presses a “Submit” button, your program should read the data in the text fields and create an Account
object using an appropriate constructor.
Hint: You will need a JFrame, 4 JTextFieldsand 1 JButton component for this purpose.
I done most of it except how would I display the namefield, addressfield, currentbalancefield, creditlimitfield when pressing the JButton?