Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

loading a .bmp imagefiles on the label as imageicon  RSS feed

 
sanju gajera
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends this is sanjay gajera from vvnagar
i havae some problems accurs in loading the .bmp image file on label or button as its IamgeIcon ....
i can load the .jpg or .gif images on it but i can't load the .bmp image file on it ...so please try to solve it....
please give me the solution as soon as possible...
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To load bmp images in java use ImageIO.read(file_url_...) with j2se 1.5+
Earlier versions do not support bmp and the older Toolkit methods do not support bmp.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!