hi all im new so this might be a noob question to some :)

ok so his the situation...

there are 2 window i created using java.swing
basically a small window with a 1 button that acts as the main and a full screen window that acts like a background..
so wen i execute the small window the big window shows up 1st then the small window. basically like a log in window with another window in the background.

i used the .setVisible(true) for both of them placed in the small window. wen i pressed the button in the small window with the codes .setVisible(false) for both of the windows they should hav both be hidden .. probs now is that only the small window is hidden the big one doesnt do anything.