This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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:
subject: Application Icon
Similar Threads
Setup for Java Application
adding icons to system tray
How to set an Image Icon in the title bar of a JPanel
systray application
ImageIcon's not displayed when created a executable Jar.