• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to change icon

 
dr priti
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
I am developing an application. I want to change the icon that appears in top left of window/frame. How do i do it?
Is it possible to change the icon appearing in dialouge boxes also.
 
Matt Senecal
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This will do it:
Frame.setIconImage(Image);
For example:
aFrame.setIconImage(new ImageIcon("Rocket.gif").getImage());
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!