Link to home
Start Free TrialLog in
Avatar of shanth_77
shanth_77

asked on

how to recreate an frame?

Dear Experts,

How to destroy an instance of the frame completely and reopen it when an button is clicked. Is there any method to destroy the frame completely and recreate it?


Avatar of vemul
vemul

did u try frame.dispose()

vemul
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
just setVisible(true) or setVisible(false)
no point destroying it
thats the same as using hide() and show().
hehehe yea ..
:p

-=[sKySh@DoW]=-
ya no point in destroying an object like that, you would probably find that it would slow down the gui more, throwing around objects like that just use hide() and show() or setvisible() to true or false.
shanth_77:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Points for objects

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Venabili
EE Cleanup Volunteer