how i can switch one of the Jpanel inside the JFrame????
as the picture..how can i change the red border JPanel without change the JFrame
Printable View
how i can switch one of the Jpanel inside the JFrame????
as the picture..how can i change the red border JPanel without change the JFrame
Well, usually when you have a panel with "Ok" and "Cancel" type buttons you present is as a JDialog to force the user to enter data and then close the dialog.
But if you really must imbed it in the frame directly then you should be using a CardLayout. Read the section from the Swing tutorial on How to Use Card Layout.
oic...tq very much