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
How do you swing an applet?
Why are swings considered lightweight?
What is java swing package?
What's java swing?
What are the differences between Swing and AWT?
What are the benefits if Swing over AWT?
What is the difference between applications and applets?
What is the use of swing in java?
What are the advantages of java swing over angular?
What is difference between applet and swing?
What are the containers available in swing?
What are the swing components in java?
What is java panel swing?
What is swing used for?
What are the two key features of swing?