Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: prainPosted on 1999-04-28 at 13:57:07ID: 1240726
You can do it in two ways.
1. You may use setVisible(false). But this will retain the window's previous data and will probably show up when you display the window for the second time. For example, if you have (say) a textfield. If you have some values in the text field when you do the setVisible(false), it will retain the data in the widnow will appear again when you redisplay the window.
1. If you want to get rid of the instance totally use the dispose() method. That will remove the instance totally from the memory. If you want to display the same screen again, then you have to do a new() again.
Hope this wil help.