Results 1 to 3 of 3
  1. #1
    jfabian is offline Member
    Join Date
    Jun 2012
    Posts
    22
    Rep Power
    0

    Default How to Manage different JPanel in an application

    Hi everyone!

    What I want to know is how to manage different JPanel in an application, instead of having various JFrame, I want to create various JPanel to represent every view of the Application. I need a login, but the login is preferable to be a JFrame, so I can disposed when the user logged in. I want to show a proper JPanel when the user execute an action. If there's a design pattern what could help me, please tell me which one is or give the idea of how I can do this.

    Thanks you in advance.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    6

    Default Re: How to Manage different JPanel in an application

    I want to show a proper JPanel when the user execute an action
    I might not understand what your intentions are, but you might look into CardLayout or JTabbedPane.

  3. #3
    jfabian is offline Member
    Join Date
    Jun 2012
    Posts
    22
    Rep Power
    0

    Default Re: How to Manage different JPanel in an application

    Hi doWhile,

    What I mean is, my application will have many views, for example: search view, report view, configuration view, etc. So i don't want to create various JFrame for every view, I want to use JPanels. When I said "I want to show a proper JPanel when the user execute an action" I meant that if the user execute the "Search" view, it appears the JPanel view, the same por report and configuartion. I'm sorry if I cannot explain myself very well, that because english is my seconds language, I hope you can understand and if you don't, I'll do my best to explain you better.

    Anyhow, I'll take a look cat CardLayout or JTabbedPane, thanks.

Similar Threads

  1. Best way to manage images?
    By sgthale in forum New To Java
    Replies: 3
    Last Post: 09-30-2011, 02:11 AM
  2. Program to manage books
    By datreta in forum New To Java
    Replies: 6
    Last Post: 12-16-2010, 09:30 AM
  3. Web application to manage music
    By Thomasheen in forum New To Java
    Replies: 2
    Last Post: 09-01-2009, 12:20 AM
  4. JMX to to manage server application
    By shiva in forum Advanced Java
    Replies: 0
    Last Post: 03-26-2009, 07:47 AM
  5. can't manage to get this
    By mollentze in forum New To Java
    Replies: 3
    Last Post: 01-11-2008, 11:03 PM

Posting Permissions

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