wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Swing and images" Watch "Swing and images" New topic
Author

Swing and images

Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
hi:
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
thanks


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.


Rich
 
 
subject: Swing and images
 
Similar Threads
set .ico icon on JButton
tray icon is not displaying
How do I read .ico files in java and put in as icon for the frame
icon related question
Writing .ico files