wood burning stoves 2.0*
The moose likes Swing / AWT / SWT 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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: 41180
    
  45
There seems to be nothing applet-specific in this problem, so I'm moving the thread to the AWT/Swing/GUI forum.


Ping & DNS - my free Android networking tools app
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You'll probably want to do something like -



-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make an image a component for JScrollPane ?
 
Similar Threads
Reading an image from a file
JLabel pan image
How to make an image a component for JScrollPane ?
how to open picture in JPanel
Background image in jscrollpane