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.