Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / romesh nongthombam

The best way to do in such condition is used the Card layout
so that you can easily process next previous function.

If you want to hide the frame, you can use like this

JFrame f1 = new JFrame("Frame 1");
JFrame f2 = new JFrame("Frame 2");

to hide f1, call f1.setVisible(false);
to show f2, call f2.setVisible(true);

Is This Answer Correct ?    34 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is content pane in swing?

958


Which types of components are used in designing swing based gui?

1025


What is import javax swing in java?

975


What are the two key features of swing?

1022


Is javafx better than swing?

1051


Which containers use a border Layout as their default layout in swing?

1042


How to create image slideshow in java swing?

1105


How to create a swing gui in java?

994


How to generate bill in java swing?

1203


Is swing part of core java?

1010


What is the base class for all swing components?

1051


What is the use of double buffering in swings?

1039


What is difference between awt and swing?

1054


What is swing delegation event model in java?

1093


How does accessibility works in swings?

970