aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Images for ImageIcon. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Images for ImageIcon." Watch "Images for ImageIcon." New topic
Author

Images for ImageIcon.

P Jain
Ranch Hand

Joined: Jul 31, 2004
Posts: 52
Hi!
Can we set any image (I mean image of any extension such as .bmp,.jpg,.ppm etc ) to ImageIcon .


Regards<br />P Jain
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
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

Joined: Jul 31, 2004
Posts: 52
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.
 
jQuery in Action, 2nd edition
 
subject: Images for ImageIcon.
 
Similar Threads
How to display an Image with the Text in a JButton ??
image distoration
Short Question on Frame Icons
boring task for anyone that his lots of spare time in there hands
how to display an image for window icon in Swings