This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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: 42968
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