title: Java GUI application?
body: <p>I'm building application in NetBeans 7.1, and I'm new in it. I have made one JFrame and two JPanel's, I want to switch between JPanel's on button click(I have buttons in those panels of course). The thing is I made those JFrame and JPanel's with NetBeans IDE and I don't have idea how to switch between JPanel's inside one JFrame. I tried with SetVisible(true); but that only opens new JFrame which I don't want.
  Thank you all in advance. </p>