• Post Reply Bookmark Topic Watch Topic
  • New Topic

changing the Icon in JFrame  RSS feed

 
Amer Seifeddine
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am asking how to change the icon in the topleft of JFrame?
And where can i download full java classes displayed in a tree along with their explanation.
Thank you
 
Tom Rodrigo
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi amer,
try:
ImageIcon icon = new ImageIcon("icon.gif");
this.setIconImage(icon.getImage());
where 'this' is your JFrame...

Regards,
Tom
 
Amer Seifeddine
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok friend, it works thanks a lot
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!