This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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