posted 4 years ago
I have this code and when i execute it the components from the first window(title 1) disappear
The code:
The funny thing is that if i run the command System.out.println(a.getContentPane().getComponentCount()); it shows that it has 3 components and the other 4.
Why the components disappear and why the title2 window has 4 instead of 6?
Thank you!!