• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding an image of .bmp form on the super  RSS feed

 
vrijendra singh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
i am unable to add an image in .bmp form on the super of my screen(program output).i have used
try{
frame.setIconImage(Toolkit.getDefaultToolkit().getImage("Image4.bmp"));
}
catch(Exception e)
{
}
But this method does not work.
Please help me and suggest some new ideas on this.
Thanks!
Singhvrijendra@hotmail.com
 
mikku Dubey
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
First of all, your problem only asks for *.bmp files. Is this not working with *.gif, *.jpeg too?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"vrij" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.
Also, the exact topic of your post was discussed just a few days ago here.

Thanks! and welcome to the JavaRanch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!