View Single Post
  #2 (permalink)  
Old 13-03-2010, 03:52 PM
copeg's Avatar
copeg copeg is online now
Moderator
 
6 Highscores

Join Date: Oct 2009
Posts: 677
Thanks: 8
Thanked 149 Times in 141 Posts
copeg will become famous soon enoughcopeg will become famous soon enough
Default Re: need help, Problem in JScrollPane

You set the layout of the JPanel within the JScrollPane to null which may be part of the problem. I'd recommend first setting up the panel with an appropriate layout (a combination of BoxLayouts with verticals and horizontals would work), all the while setting the preferred size (and maximums/minimums if necessary) of each component so it can let the JScrollPane know if it needs to scroll
Reply With Quote