How can I close all open jframes in my project when I execute an action that opens another jframe?
I have a login system and when needed, I invoke another frame to set a password. After setting the password I make the dispose () to this jframe and start the new jframe, but I would like the login jframe to also close.
Maybe a more viable solution would be to call a jDialog to set this password, but I do not feel comfortable with jDialogs and that's why I'm invoking a new jframe.
Any suggestions?
EDIT:
I create ' JFrame Form
' as follows:
TheninthedesignpartthenameoftheFrameIdonotknowwhichisbecauseitonlyhasthis:
So how can I set this frame if I do not know her name?