File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Marshal

Joined: Mar 22, 2005
Posts: 42927
    
  68
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 ?