Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using JAI  RSS feed

Jennifer Sohl
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have downloaded JAI so I have the ability to view .tif images in an application. I somehow need to use JAI to create an image preview in a JFileChooser, but I'm not really sure how to go about it. I don't really understand the imaging stuff very well yet, but I'm trying!
This is currently the ImagePreview class used to display images in the JFileChooser (From sun's tutorial):

It currently only displays .jpg and .gif images. How do I incorporate JAI into this class I already have, so .tif images can be previewed?
(If anyone knows of a good book on the imaging stuff in java, please let me know!)

Thanks for any help!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!