So let's say I have 3 files.
Accounts.java (Account class)
loginGUI.java (JForm)
displayAccountGUI.java (JForm)
when I login I input CustomerID, Pin and Account Number. Then the program checks if the 3 values I have inputted are in accounts.txt.
I also have Account a = new Account();
in both of the Jframes.
In displayAccount.java
I want to display Account Number from loginGUI.java
that is being stored in Account.java using a.setId(ID);
but because I have Account a = new Account();
in displayAccount.java
the value set before is being removed due to creation new 'Account'.
Is there any way I can access this value in some other way?