Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!