Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ICON at titlebar

 
Ikram Soomro
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
How can the ICON at titlebar of JFrame (Coffee cup Icon) can be changed with our custom new ICON.
 
R.Joe
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ikram,
here is a code which u put inside constructor of JFrame

try
{
this.setIconImage(Toolkit.getDefaultToolkit().getImage("abc.gif"));
}
catch(Exception e)
{}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic