aspose file tools*
The moose likes Beginning Java and the fly likes Application Icon Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Application Icon" Watch "Application Icon" New topic
Author

Application Icon

Rick Rodriguez
Ranch Hand

Joined: Jun 02, 2001
Posts: 44
How do you go about "changing" your application icon?
In other words, when I start my Java application, I don't want it to have that "Java Logo" that it defaults to.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Are you talking about the icon in the upper left corner of the Java application window?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
If you are talking about the icon in the upper left corner of the application (in a JFrame for example), you can use the setIconImage method.
To have your gif image as the application icon do:
setIconImage(Toolkit.getDefaultToolkit().createImage(MyJFrame.class.getResource("myImages/MyLogo16x16.gif")));
HTH
 
jQuery in Action, 2nd edition
 
subject: Application Icon