Hi, i am calling the .TIF format picture in the swing application and it is not showing any error and not displaying the image i requested. my code looks like this JLabel img = new JLabel("", new ImageIcon("index.TIF"), JLabel.CENTER) but the image is not displayed and i tried with .gif and .jpeg and its working fine. can somebody help me thank you
The JRE only provides support for GIF, JPEG, and PNG images. For any other image types, you'll have to use JAI (Java Advanced Imaging API) or a third party class for TIFF decoding.
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Brian Pipa
Ranch Hand
Joined: Sep 29, 2003
Posts: 299
posted
0
I beleive you can only use gif/jpg, or png images. Take a look at the Javadocs for Toolkit.getImage() Brian