Results 1 to 3 of 3
  1. #1
    chyeeqi is offline Member
    Join Date
    Aug 2009
    Posts
    23
    Rep Power
    0

    Default Need help in switch JPanel

    how i can switch one of the Jpanel inside the JFrame????
    as the picture..how can i change the red border JPanel without change the JFrame
    Attached Thumbnails Attached Thumbnails Need help in switch JPanel-untitled.jpg  

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

    Default

    Well, usually when you have a panel with "Ok" and "Cancel" type buttons you present is as a JDialog to force the user to enter data and then close the dialog.

    But if you really must imbed it in the frame directly then you should be using a CardLayout. Read the section from the Swing tutorial on How to Use Card Layout.

  3. #3
    chyeeqi is offline Member
    Join Date
    Aug 2009
    Posts
    23
    Rep Power
    0

Similar Threads

  1. Switch between forms.
    By OMFGITSROHIT in forum AWT / Swing
    Replies: 9
    Last Post: 03-13-2010, 07:47 PM
  2. switch
    By dj kourampies in forum New To Java
    Replies: 17
    Last Post: 01-30-2009, 05:32 PM
  3. switch
    By dj kourampies in forum New To Java
    Replies: 2
    Last Post: 01-30-2009, 08:46 AM
  4. Switch help please!!!!
    By soc86 in forum New To Java
    Replies: 6
    Last Post: 11-23-2008, 07:25 PM
  5. Switch Statement Help
    By bluegreen7hi in forum New To Java
    Replies: 6
    Last Post: 02-06-2008, 05:16 AM

Posting Permissions

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