Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make an image a component for JScrollPane ?

 
Jesse Crockett
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put an image inside a JButton.
[ December 25, 2006: Message edited by: Keith Lynn ]
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There seems to be nothing applet-specific in this problem, so I'm moving the thread to the AWT/Swing/GUI forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic