• Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT/SWING

 
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!