It's not a secret anymore!
The moose likes Swing / AWT / SWT and the fly likes HELP,Where are the Scrolls? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "HELP,Where are the Scrolls?" Watch "HELP,Where are the Scrolls?" New topic
Author

HELP,Where are the Scrolls?

Pengfei Wang
Greenhorn

Joined: Jul 20, 2012
Posts: 3



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

Joined: Oct 24, 2010
Posts: 530
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.


Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32712
    
    4
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

Joined: Jun 09, 2003
Posts: 4632
'panel' needs to have a preferred size set,
one bigger than the viewport size
Pengfei Wang
Greenhorn

Joined: Jul 20, 2012
Posts: 3

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

Joined: Jul 20, 2012
Posts: 3

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: HELP,Where are the Scrolls?
 
Similar Threads
using a bean
[newbie] Syntax error on token(s), misplaced construct(s)
Problem with JSplitPane and JFrame
ActionListener and Event