This is my first post to this forum, so if I screw something up, please let me know.
I have been using the information provided on this site for a good few months at this point to help me with various questions, so I thank you all for it the help!
Anyway, enough fluff and on to the question: I am currently writing my first company-use program in the Java language and I have run into something for which I haven't given much thought until last week.
Currently, I have created a program that uses two separate swing-type GUIs - one to log in a user and one that I am dubbing "the main GUI." As with any language, there are multiple ways to achieve this and after much thinking about what the best way to do it is, I was wondering if anyone with experience had any insight as to the best practice for implementing multiple GUIs.
Right now, I have the login GUI's action listener creating the main GUI object, but I do not think this is the best way to go about it (I'm sure some of the more seasoned Java programmers are probably cringing at the thought of creating a GUI object from an action listener - it's like I can feel them wanting to smack the back of my head!).
So, to be direct - I have thought of about 3 different ways to acheive the objective, from recycling the JFrame to creating the GUI objects in main and setting visibility, and am wondering what the best practice (industry standard) is. Can anyone point me in the right direction?
I have posted this question to another group and was completely ignored. I am beginning to think there may not be a real answer to the question, but would like to try you experts at Stack Overflow before I give up. What are your thoughts? How have you implemented them in the past? Is better to instantiate them in main and manipulate visibility? While I have found posts that speak of best practices for creating a GUI, I haven't seen much that speaks of multiple GUIs in the same program. Thanks for your time!