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

Thread: Get Box to Respond to JScrollPane

  1. #1
    Member
    Join Date
    Jun 2011
    Posts
    182
    My Mood
    Where
    Thanks
    15
    Thanked 8 Times in 8 Posts

    Default Get Box to Respond to JScrollPane

    I am adding (supposed to be) fixed JPanels to a Box and I want the Box, being the viewport of a JScrollPane, to use the scrollpane to allow the user to scroll down the list of JPanels. The problem I am having is, the Box is just downsizing the JPanels to all fit inside of it. And this is with the panels having set min/max sizes.

    If you need a specific code example, let me know and I will try to pick one out from the code.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Get Box to Respond to JScrollPane

    Please post a specific code example as an SSCCE

Similar Threads

  1. JEditorPane in a JScrollPane
    By Danjb in forum AWT / Java Swing
    Replies: 10
    Last Post: June 12th, 2011, 02:41 PM
  2. Add JScrollPane to a JPanel
    By alibm in forum AWT / Java Swing
    Replies: 2
    Last Post: March 7th, 2011, 02:59 PM
  3. [SOLVED] Platform game player doesn't respond to keyboard
    By jesamjasam in forum What's Wrong With My Code?
    Replies: 4
    Last Post: December 12th, 2010, 09:44 AM
  4. JScrollPane
    By MysticDeath in forum AWT / Java Swing
    Replies: 1
    Last Post: February 17th, 2010, 10:21 PM
  5. JTable in JScrollPane
    By alwayslearner in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: January 29th, 2010, 11:42 AM