View Full Version : Setting the content pane twice

02-25-2008, 04:22 AM
Hi there. I am new to java and was wondering if it was possible to set the content pane twice.

For example, say I had a GUI that had a login form, or you could click register to register, how exactly would I change from the login form, to the register form?


02-28-2008, 04:52 AM
Yes you can change it with the setContentPane() method. Initially you would call the setContentPane method with you login panel and if the user want's to register then you call the same setContentPane method again with the register panel.