Is it possible to have a frame where by a new panel in that frame refreshes to the next panel, if you click the 2 link for example.
Is there easy code for this?
The picture below illustrates this better.

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll want to use a CardLayout, this is what it’s designed for. It will allow you to switch out different components based on your needs
Check out How to use CardLayout for more info
That’s a little subjective, but I would say
CardLayoutis the simplest of the possible solitons