Switch JPanels in a single JFrame
Hi, i'm having some problem in realizing a Frame.. my customer asked me to create a single window (it's a quite big insertion form) in this section of this program and he also asked me to split all the textFields and the ckeckBoxes of this form in 2 or more different panel of the same window, that the user can "slide" with the button "next"...
The reason is there are too many information to fill in a single big window, so it's better to split the information in more "slidable" panel. The buttons next and back instead, shoud be settled in the bottom of the window and obviously at the 1st "page" the back button is disabled and the same thing for the next button at the last "page".
So my question is: how can i use the netBeans visual design IDE to make this? Yes i can work on all the single panels i want to split.. but how can i put all of them in the same jFrame at the same coordinates?? is it possible?? and when the next button is clicked do something like this?:
buttonNextActionPerformed(ActionEvent evt){
jPanel_N.setVisible(false);
jPanel_N+1.setVisible(true);
}
or maybe you can suggest me other solutions?
thanx.
PS: I'm italian, so sorry for my english grammar mistakes..