This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to change a frame or applets icon  RSS feed

 
sushant prabhu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i go about change the default icon of an applet or a frame
i am using the setIconImage(Image img);
this program compiles fine but gives me a black box in place of the frames default coffee cup icon.
i am using an x.ico file for the image
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The image has to be a gif or a jpg ( unless you have some special way of loading an .ico file as an Image... )

-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!