Navigation Screens with Swing
Hi,
I am new to Swings.
I have a work flow system which has sequence of screens developed using swings. For navigation from one screen to another code that is used is,
On button click event,
new ScreenObject().setVisible(true);
this.setVisible(false);
But in this method, old object remains in memory through out the application. If this is the right approach ?
If it is, how do i destroy old objects from the last screen of the application if user closes last screen. Last screen has only
this.dispose();
which will dispose current screen objects.
Please guide.
Thanks and Regards
Nagarajan

