how to connect Jframe and Jpanel
i noe this is a silly question.
i had a main class Jframe created with netbean gui builder and a Jpanel class with netbean gui builder also. i wan to show jpanel class after i click on a button. how can i link this 2 together?
assume tat jframe=frame1
i tried new frame2().setVisible(true);
but it doesn't work.
one more question.
is it possible to link multiple jpanel class to form a new gui class?
example. jpanel class 1 ,2,3,4
i wan to put jpanel 1,2,3 into 4 and make a new layout from it.
how to do i connect the together?
anyone pls help