This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
 
wood burning stoves
 
subject: Change JFrame Icon (cup of coffee)