Java can display png, jpg a some other picture formats, but i have to display a bmp file in a JLable by getting the file path.
ImageIcon imageIcon = new Imag
javax.imageio.ImageIO supports the BMP format:
Image image = ImageIO.read(imageFile);
ImageIcon icon = new ImageIcon(image);
JLabel label = new JLabel(icon);
ImageIO can also be used to convert between different formats.
I find some classes written in Java 1.5 but you can easily update 2 classes so that you can use the classes in 1.4.
imag4j can convert bmp and ico files to BufferedImage objects you can display in java. You can import 17 classes and have to update maybe 10 lines because of java 1.5 statements.
You get a bmp converter which is working very fine.