2
How can I close all jframes opened in my project when I run an action that opens another jframe?
I have a login system and when necessary, I invoke another frame to define a password. After setting the password I do the Dispose() to this jframe and start the new jframe, but I would like the login jframe to also close.
Perhaps a more viable solution would be to call a jDialog to define that password, but I don’t feel comfortable when it comes to jDialogs and that’s why I’m invoking a new jframe.
Any suggestions?
EDIT:
I create the 'JFrame Form
' as follows:
Then in the design part the name of Frame I don’t know what it is because it only has this:
Just how can I set this frame if I don’t know her name ?
That issue of yours still has to do with the same problem?
– jsantos1991
Yes, it was an issue made at @joaoNeto’s request to see if you can help. I haven’t been able to resolve this issue yet
– Hugo Machado
That’s exactly what you said in the first post. Then I’ll have to run the frame by parameter. But then I have to put the parameter in the constructor? Plataformalogin(Jframe frame) ?
– Hugo Machado