File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Swing and images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Swing and images" Watch "Swing and images" New topic

Swing and images

Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
Just a general question. Doesn't swing component reads .ico, or .bmp files.
I am trying to add and image to a button. .ico and .bmp don'e work, the only thing work is .gif
Can anyone comments

SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Richard Everhart
Ranch Hand

Joined: Nov 19, 2003
Posts: 54
I'm not sure about .ico and .bmp support in Swing, but in addition to .gif, .jpg files are also supported.

I agree. Here's the link:
subject: Swing and images
It's not a secret anymore!