Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Change JFrame Icon (cup of coffee)

 
Jawad Kakar
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bill.
Jawad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic