Close frame when opening another one?

-1

Probe with dispose and setVisible but first of all, they hide, they do not close, and besides, they would not be working for me. I needed to close it completely, not just hide it.

The windows that are open are those of administrator and / or operator, I would need to close the window from which I am when I open one of those two:.

    
asked by Melannie Nichole 05.10.2017 в 02:11
source

1 answer

0

Always to move from one form to another I have used:

FormularioPrincipal frm = new FormularioPrincipal();
frm.setVisible(true);
this.dispose();

And he has never given me a problem, the user will never see the form again and the process is not running either

    
answered by 05.10.2017 в 03:12