Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2007
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Setting the content pane twice

    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?

    Thanks.

  • #2
    New Coder
    Join Date
    Jun 2005
    Posts
    32
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •