File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Application Icon" Watch "Application Icon" New topic

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

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:
I agree. Here's the link:
subject: Application Icon
It's not a secret anymore!