ToXSiK 0 Newbie Poster

Hey everyone, and thanks for taking the time to read my post.

Basically, I have a JFrame called "loginPage", that, well, is a login page. If a user logs into this page with the correct credentials, a new JFrame object called accountDetails opens (Or is constructed).

Now, Is there a way to make it so that when my code constructs the accountDetails frame, for it to only focus on accountDetails until it is closed? (IE not have the login page still open?) and then return back to the loginPage code?

I know it may be hard to understand, but what I am really trying to get at is understanding how these frames work: As in why do they stay open and not initialize and then immediately destroy themselves (Are they running on a thread or something?)

Bahh, Please help O: