Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Single JFrame for Dinamic Contents Window

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Single JFrame for Dinamic Contents Window

    Hello, is it possible to make only 1 jframe contains many items (button, radio, etc.) and when i press next button, the contains of jframe changing? It is like WIndows appliciation installer, just next-next-next.

    Until now, I create new jframe and link to another jframe bu new framename().setVisible(true). So, there is so many jframes in my single project. Anybody can give me suggestion?

    I wanna create application such as encyclopedia (or like Ubiquity in Linux if you know ). Thank you...


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Single JFrame for Dinamic Contents Window

    Look at the CardLayout class.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Feb 2013
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Single JFrame for Dinamic Contents Window

    Can you give me an example? Simple example, simpler than the Oracle one? Thank you

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Single JFrame for Dinamic Contents Window

    Sorry, my example is the one from the tutorial.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Feb 2013
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Single JFrame for Dinamic Contents Window

    Ooh, so you are the Oracle Documentation Team? So thank you.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Single JFrame for Dinamic Contents Window

    Of course not. The tutorial has many useful pieces of code. I use them instead of writing my own.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 3
    Last Post: March 28th, 2012, 08:47 AM
  2. Replies: 2
    Last Post: October 31st, 2011, 09:19 AM
  3. Reading contents of another window
    By jimmys in forum Java Theory & Questions
    Replies: 8
    Last Post: October 4th, 2010, 11:40 PM
  4. Setting JFrame to be only selectable window
    By aussiemcgr in forum AWT / Java Swing
    Replies: 3
    Last Post: July 22nd, 2010, 12:43 PM
  5. how to make a simple JButton on a JFrame window?
    By chronoz13 in forum AWT / Java Swing
    Replies: 8
    Last Post: November 20th, 2009, 10:08 PM

Tags for this Thread