Create extra GUI interface
Hie guys, may I please have your help if you will.
I have a school assignment I am working on. It is a supermarket GUI checkout which allows users to buy goods, pay, get change and print receipts. Quite basic.
Now the issue is this. The program is now working perfectly well except for one little thing.
I want to be able to create a new instance of the program i.e another GUI with a fresh instance of all the associated classes. So one user will be able to buy and maintain his own basket whilst another user does the same.
There is no inventory system so there is no need for sharing anything between the two. They can be completely different.
My main method is in a class called ShoppingCartDisplay
I already have a button (picture below) in the GUI for performing this action but I am at a complete loss as to how to execute this. How can I make the computer start a completely fresh instance of this program when the button is clicked.