• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing and images  RSS feed

 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Richard Everhart
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure about .ico and .bmp support in Swing, but in addition to .gif, .jpg files are also supported.


Rich
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!