• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make an image a component for JScrollPane ?  RSS feed

 
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..



 
Ranch Hand
Posts: 2410
  • 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 ]
 
Rancher
Posts: 42975
76
  • 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
Boost this thread!