• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Images for ImageIcon.

 
P Jain
Ranch Hand
Posts: 52
  • 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
Pie
Posts: 1535
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic