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 4 of 4

Thread: Dynamic Number Of Text Field

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Number Of Text Field

    Hello,
    I am using jFrame and in my jFrame there is one text field which show number of text field in next step
    now I have two problem
    1-How to make multi step in jFrame?
    2-How can make dynamic text fields? (How to manage values and ...)
    3- all data in all step should be accessible?Is it possible?


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

    Default Re: Dynamic Number Of Text Field

    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Dynamic Number Of Text Field

    1.jpg2.jpg
    Please check my attached file.
    at first step user enter number of fields and in second step I show him field.

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

    Default Re: Dynamic Number Of Text Field

    Use the add method to add the components to the container that is being shown and then tell the container that it needs to redo its layout so that the new components are shown. There is a Container class method to call that will do that.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Text in field objects go out of bounds..
    By imsuperman05 in forum AWT / Java Swing
    Replies: 2
    Last Post: April 5th, 2012, 06:35 PM
  2. Replies: 3
    Last Post: April 11th, 2011, 09:51 PM
  3. Tic Tac Toe Java Application Help w/ Importing Text Field
    By Big Bundy in forum What's Wrong With My Code?
    Replies: 10
    Last Post: March 30th, 2011, 02:08 AM
  4. Get dynamic Text fields values
    By John kee in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 24th, 2011, 07:15 AM
  5. Replies: 3
    Last Post: February 21st, 2011, 07:25 PM