Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT/SWING  RSS feed

 
Rajeev Iyer
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to replace the coffee cup icon on the Frame with some other icon?
Thanks....
 
Matt Senecal
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JFrame.setIconImage(Image) will do that. For example (if aFrame is defined as a JFrame):
aFrame.setIconImage(new ImageIcon("Rocket.gif").getImage());
Originally posted by Rajeev Iyer:
Is it possible to replace the coffee cup icon on the Frame with some other icon?
Thanks....

[ July 03, 2002: Message edited by: Matt Senecal ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!