Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HELP,Where are the Scrolls?  RSS feed

 
Pengfei Wang
Greenhorn
Posts: 3
Android C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The scrollbars just won't show up, I can't locate the BUG, can anyone help?
I noticed someone had the simlumar question inside this forum, but that is the "ImageIcon" solution, not "Image", or "ImageIO" solutions.
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide some details with your post to describe the problem and/or ask specific question(s) so that we know what to help with. Not everyone can or wants to run posted code to then guess what the poster's thread title means.
 
Campbell Ritchie
Marshal
Posts: 55698
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

As Greg has said, we can’t try your code because we don’t have the image file. Is the image smaller than the panel?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'panel' needs to have a preferred size set,
one bigger than the viewport size
 
Pengfei Wang
Greenhorn
Posts: 3
Android C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:'panel' needs to have a preferred size set,
one bigger than the viewport size

aha...
after line 34,
added:

DONE!

Thanks a lot!
 
Pengfei Wang
Greenhorn
Posts: 3
Android C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greg Brannon wrote:Please provide some details with your post to describe the problem and/or ask specific question(s) so that we know what to help with. Not everyone can or wants to run posted code to then guess what the poster's thread title means.

Sorry, this is my first post... ...I'm learning the rules, thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!