You could make another class in the same folder and let the first one run the second when a button is clicked. If you want any example/ more details/or anything you don’t understand, just leave a comment
2
solved Can i make more than one graphics console in Java?