File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application Icon

 
Rick Rodriguez
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about the icon in the upper left corner of the Java application window?
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic