I can not make an interface disappear in netbeans


Hello, I'm doing a project in NetBeans with several frames and I used the .setvisible(true); that works correctly for my other interfaces to appear; but I also used the .setVisible(null); to make the previous interface disappear but it keeps appearing behind the other one. I do not have any code programmed more than that; I do not have mistakes or anything and I do not know what I'm doing wrong.

asked by Mariana Aldama 10.11.2018 в 04:38

1 answer


Try the following solution. Instead of using .setVisible (null); use the following Axis: JFrame.setVisible (false);

answered by 10.11.2018 в 08:28