When i m clicking on next another frame is open but i want
to hide the previous frame...........but it is not
happening....still both frame are visible........how to
make one frame to hide.......please help me.......

Answer Posted / prerna keshari

You certainly don't want to destroy frame1, so do not use
despose(). just use setVisible() method and provide the
argument as false.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of internal frame in swing?

611


What is pane in swing?

530


Explain the difference between swing and jsf.

612


What are controls and what are different types of controls in awt?

523


Is swing better than awt?

527






What is swing container?

520


What is the design pattern that java uses for all swing components ?

507


What is swing and awt in java?

515


Is swing still used?

499


What method is used to specify a container's layout?

516


What is difference between awt and swing?

567


What are swing components?

597


What is the difference between a scrollbar and a jscrollpane ?

763


What is java panel swing?

511


What is java swing application?

528