File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with Scrollable Image please...

 
Nick Davies
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there, I'm having a bit of a problem

I have a thumbnail of a photo on a form called Photo.java



When I click the thumbnail it opens a new form (DisplayPhoto.java) 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 Photo.java to DisplayPhoto.java? Also how will I make the image scrollable?

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

Thanks
Nick
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can probably modify this to work for you.

 
Stuart Gray
Ranch Hand
Posts: 410
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you also just use an ImageIcon and put that in a JScrollPane? Or am I missing something?
 
Craig Wood
Ranch Hand
Posts: 1535
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic