This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Change JFrame Icon  (cup of coffee) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Change JFrame Icon  (cup of coffee)" Watch "Change JFrame Icon  (cup of coffee)" New topic
Author

Change JFrame Icon (cup of coffee)

Jawad Kakar
Ranch Hand

Joined: Oct 06, 2002
Posts: 82
Dear Reader,
How to change the JFrame Icon (cup of coffee) by one of mine. The icon I have is in "cat.gif" file.
Thank you
Jawad
Bill Liteplo
Ranch Hand

Joined: Oct 16, 2002
Posts: 88
Genrally, you would use something like

This method is in java.awt.Frame.
There are also other ways of instatiating the ImageIcon.

Bill
Jawad Kakar
Ranch Hand

Joined: Oct 06, 2002
Posts: 82
Thank you Bill.
Jawad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change JFrame Icon (cup of coffee)
 
Similar Threads
ICON at titlebar
How to disable coffee cup icon and the menu that comes with it?
Changing the coffee cup icon of a Java Application!
Remove default window icon from JFrame
AWT/SWING