Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setting an icon  RSS feed

 
Tal Tal
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
im trying to set an icon in a JFrame.
i know you can use ToolKit for setting an icon which is a .jpg or a .gif,
but the icon i would like to use is a real icon file(.ico)and for some reason that dosent work.

this is what i tried

any suggestions?

thanks
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"...for some reason..."

It's because Java doesn't support the .ico image type.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!