Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why the scroll pane doesn't scroll (SSCCE attached)  RSS feed

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The scrollpane on the left has 56 tree items, when fully expanded, will go beyond the
bottom of the screen, how come they was no scroll bar there
Thanks for any help in advance
Jack

 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/t/456797/GUI/java/working-JScrollPane

look for viewport
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
K. Tsang wrote:http://www.coderanch.com/t/456797/GUI/java/working-JScrollPane

look for viewport


Thanks, got it working.
Just wondering why when I set the preferred size of it, the scroll
pane doesn't come up?
Jack
 
Campbell Ritchie
Sheriff
Posts: 55329
157
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not an SSCCE.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!