aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes ICON at titlebar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ICON at titlebar " Watch "ICON at titlebar " New topic
Author

ICON at titlebar

Ikram Soomro
Ranch Hand

Joined: Oct 20, 2001
Posts: 42
Hello,
How can the ICON at titlebar of JFrame (Coffee cup Icon) can be changed with our custom new ICON.
R.Joe
Ranch Hand

Joined: Jun 16, 2004
Posts: 31
Hello Ikram,
here is a code which u put inside constructor of JFrame

try
{
this.setIconImage(Toolkit.getDefaultToolkit().getImage("abc.gif"));
}
catch(Exception e)
{}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ICON at titlebar