I have created a main frame with 2 buttons, New and Close All. When New is clicked, a new frame is to be created titled Frame 1. Subsequent clicks of New will create additional frames, Frame 2, Frame 3, etc. When Close All is clicked in my main frame, all Frame n's are to close. I'm new to Java Swing and cannot seem to find an example on how to perform this in code? I see stuff on internal frames, but that is not what I am attempting to do. Can you help?
View All Comments
| View Tutorial