posted 15 years ago
Hi guys, I´m making an interface for some math exercises. I have a window per exercise (3 now) and now I want to work with all of them in one single window, by clicking a button in the main window, and replacing the content of it with the content of the window of the exercises choose.
But with my actual skills, what I get is a new window over the main. I think I should change the constructor of the exercises classes, but I don´t know how.
¿How can I fix this?
The code for each exercise window (all whit the same structure) is this:
And the code for the three JButton of the main window is:
Cheers.