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

Thread: Help

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Location
    Sandwich
    Posts
    14
    My Mood
    Yeehaw
    Thanks
    1
    Thanked 1 Time in 1 Post

    Question Help

    Alright so right now in my program i have it were you click on a button and based on what you click on more Labels,Buttons,etc... apppear. Currently though i am having the problem were after i click the button i have to resize the window for objects to be visible

  2. #2
    Administrator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    24,848
    Thanks
    64
    Thanked 2,645 Times in 2,615 Posts

    Default Re: Help

    Do you have a question about your program? If so, please ask it.
    Can you make and post a small, complete program that compiles, executes and shows the problem?

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Location
    Sandwich
    Posts
    14
    My Mood
    Yeehaw
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Help

    My exact question is why do i have to resize the window to make the components appear is there a key word or something im missing

  4. #4
    Administrator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    24,848
    Thanks
    64
    Thanked 2,645 Times in 2,615 Posts

    Default Re: Help

    Hard to say without seeing some code that demonstrates the problem.

    If you define a window 100 pixels wide and add a component that is 70 wide and then later another that is 70 wide, you could have to resize the window to see the full 140 pixels of the two components.

  5. #5
    Junior Member
    Join Date
    Jan 2013
    Posts
    8
    My Mood
    Nerdy
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: Help

    @daryn you can use jscrollpane and add all the components to it then bind the size property of the jscrollpane to the size of the window.
    Now you won't have to resize just scroll (if the componets can't fit on the viewport).