display bmp images using JLabel



Hello, I am trying to write a viewer that is able to read/display bmp, jpg,
gif and png files. Currently, my program is unable to read bmp files! Help!

ImageIcon ii = new ImageIcon(str);
CustomScrollPane sp = new CustomScrollPane(new JLabel(ii));

where did i go wrong... using the above code i am able to read jpg, gif and
png!


--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200510/1
.



Relevant Pages

  • Website crawler auto image downloader
    ... I need a script that will crawl a list of websites and download all .jpg, ... ..gif, .png files. ...
    (php.general)
  • Re: powerpoint keeps loading in IE / firefox
    ... I noticed that when I use some .png files that the document stalls, ... gif and jpg ...
    (microsoft.public.powerpoint)
  • Beamer/Beamerposter with gif images
    ... I am trying to create a poster using beamer and beamerposter. ... I am having trouble using gif images. ... It has no problem using jpg or ... png files via the \includegraphics command but says "LaTeX Error: ...
    (comp.text.tex)
  • Re: My browser shuts down when attempting to view my website
    ... ability to convert images to jpg and gif formats, ... When you insert an image that is say 1600x1200 pixels into your Publisher ... compression feature, in theory resamples and resizes, and thus compresses ...
    (microsoft.public.publisher.webdesign)
  • Re: Success!
    ... Pub 2003 is designed to create multiple versions of each image, in gif, jpg, ... > make my web pages compatible with Netscape ... >> Publisher 2000 is quite compatible with later versions of Netscape. ...
    (microsoft.public.publisher.webdesign)