This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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!