This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Applets and the fly likes How to make an image a component for JScrollPane ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "How to make an image a component for JScrollPane ?" Watch "How to make an image a component for JScrollPane ?" New topic
Author

How to make an image a component for JScrollPane ?

Jesse Crockett
Ranch Hand

Joined: Feb 03, 2005
Posts: 129
I'm trying to make an applet that uses screenshots of documents instead of loading the pdf or doc files. Is there a way to make an image a component? I'm never worked with images in Java, let alone applets. Here is the code I'm working with, if it helps..



Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
You can put an image inside a JButton.
[ December 25, 2006: Message edited by: Keith Lynn ]
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
There seems to be nothing applet-specific in this problem, so I'm moving the thread to the AWT/Swing/GUI forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make an image a component for JScrollPane ?
 
It's not a secret anymore!