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 / doris

Hi, u can use this code snippet...

new MAIN_STORING().setVisible(true);
this.setVisible(false);

n/b: assuming that the keyword 'this' is pointing to the
one u want to go off when u click for MAIN_STORING page.

Goodluck!

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java swing deprecated?

615


What is the purpose of serialization in swings?

544


What is java swing package?

511


What is swing used for?

487


What is the function of abstractaction class?

584






What is a swing day?

527


What is java swing application?

528


What is jpanel in java swing with example?

503


What is a component in swing?

505


What is event in java swing?

511


What are the various components of swing?

513


What is the use of jfc in java swing?

653


What are the different types of layout managers used in swing?

518


What is the class in swing to change the appearance of the frame in runtime?

560


What are swing components in java?

477