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: need help

  1. #1
    Junior Member
    Join Date
    Apr 2022
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default need help

    Hi,
    I am new to java programming and programming in general.
    I need to build a desktop app where the user is able to dynamically add multiple pages by clicking a button. Each page has same controls but it has to be identified by a number(1,2,3....n)
    Can sb please help what kind of controls can I use to make possible to add pages dynamically.
    Thanks

  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: need help

    What are the pages you talk about? Are they new independent windows or frames?
    If you don't understand my answer, don't ignore it, ask a question.

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

    Default Re: need help

    They will not be independent, lets say that every page is an item, so there will be item 1, item 2, item 3...item n and all items are part of one product.
    So the user can decide how many items to add by clicking a button to add one more item or spinner maybe, and every time he ads an item he can fill all boxes that belong to that item
    So I believe the page is going to be a frame, and the user can add multiple frames one by one

    I will have to loop through every item(every page) and get data from each of them
    when the users clicks a button.

    I am not sure what kind of controls I can use to achieve this

  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: need help

    They will not be independent,
    How will they be displayed or organized so that they are connected and not independent?

    I believe the page is going to be a frame
    If they are frames, then they could be independent of each other.
    What would happen if one of the frames is minimized or closed? Do the other frames react?
    How would they be connected?
    If you don't understand my answer, don't ignore it, ask a question.