I am working on an application that has a menu window with 2 buttons for menu options. I would like the application to function in the following way. When a menu option button is clicked, the menu window disappears and the window for the menu selection appears. When the close button for the active window is clicked, the menu window re-opens.
At this time, I have my menu window class and one option window ("Add New Record") coded and saved into seperate files. The add new record class is imported into the menu class. I was planning on keeping each window class in a seperate file, thinking that would be a "cleaner" way of orgainizing my application code, but it may be part of my problem.
The menu window opens fine, if the 'add new record' button is clicked the menu window goes away via, .setVisible(false), and the add new record window pops up. But, I can't figure out how to get the menu window to re-open when clicking the 'close' button on the add new record window.