File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Images for ImageIcon.

 
P Jain
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Can we set any image (I mean image of any extension such as .bmp,.jpg,.ppm etc ) to ImageIcon .
 
Craig Wood
Ranch Hand
Posts: 1535
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the first paragraph on this page: How to Use Icons. In the new j2se 1.5 there will be more types supported with the javax.imageio.ImageIO class.
 
P Jain
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I have checked the formats supported by my j2se (which I am using) and its show that in both categories Reader and Writer it support Portable Pixmaps(ppm) format but when I use it as ImageIcon, its not showing the Image.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic