Results 1 to 8 of 8

Thread: contentpane

  1. #1
    marodia is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default contentpane

    hi...

    I am using a contentpane which has several jpanels in it.one of them has the login part.when I am submitting the login jpanel and calling contentpane.refresh(),I want that login jpanel to be replaced by a new jpanel which may display information like "login successful".

    i am i a fix how to do this plez can anyone help!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,419
    Rep Power
    20

    Default

    Take a look at CardLayout.

    db

  3. #3
    marodia is offline Member
    Join Date
    Aug 2009
    Posts
    9
    Rep Power
    0

    Default

    cannot use cardlayout..

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Quote Originally Posted by marodia View Post
    cannot use cardlayout..
    Why not?

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by marodia View Post
    cannot use cardlayout..
    Second the question: Why not? It's the proper tool for the job.

  6. #6
    programmer_007's Avatar
    programmer_007 is offline Senior Member
    Join Date
    Aug 2009
    Posts
    125
    Rep Power
    0

    Default

    well i have a same problem .. if u get solution help me to .. mail at sandeep_soni10|at|yahoo dot com

  7. #7
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  8. #8
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    6

    Default

    edit: scratch that, for ease of use i would go as above posters have suggested... a cardlayout
    Last edited by mrmatt1111; 08-27-2009 at 07:50 AM.
    My Hobby Project: LegacyClone

Similar Threads

  1. Rootpane,ContentPane,LayeredPane
    By makpandian in forum AWT / Swing
    Replies: 2
    Last Post: 01-30-2009, 11:22 PM
  2. adding the Java Console to a ContentPane
    By naipulb in forum New To Java
    Replies: 1
    Last Post: 06-10-2008, 08:51 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
  •