It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes Help with Scrollable Image please... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help with Scrollable Image please..." Watch "Help with Scrollable Image please..." New topic

Help with Scrollable Image please...

Nick Davies

Joined: Apr 22, 2005
Posts: 3
Hi there, I'm having a bit of a problem

I have a thumbnail of a photo on a form called

When I click the thumbnail it opens a new form ( where I want to display the photo as it actual size. If the picture is to big, I want to be able to scroll the photo.

I have this so far:

I want to be able to load the photo from the path of the photo. How do I pass the path from to Also how will I make the image scrollable?

Any pointers will be greatly appreciated. If anything is not clear please let me know.

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286

You can probably modify this to work for you.

GenRocket - A Test Data Generation Platform
Stuart Gray
Ranch Hand

Joined: Apr 21, 2005
Posts: 410
Could you also just use an ImageIcon and put that in a JScrollPane? Or am I missing something?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
I agree. Here's the link:
subject: Help with Scrollable Image please...
Similar Threads
Problem Updating a JButton
Example almost straight out of book doesn't display image
JPanel, no sytax error but error output
How can i display minimize and iconifiable button in JInternalFrame
Problem in adding Scroll Bar to JPanel.