Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFrame

 
vandana
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Is there any method by which i can change the standard java icon
i.e; a cup with steams which is present at the top left corner of any JFrame?
I want that my application should hv the icon which i hv designed.
 
Rahul Mahindrakar
Ranch Hand
Posts: 1868
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can use
Frame1.setIconImage(Toolkit.getDefaultToolkit().getImage("images"+File.separator+"title.gif"));
or
Frame1.setIconImage(Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("images/Title.gif")));

Vandana
Welcome to Javaranch. We follow some rules pertaining to User names. The rules are specified at here
Your User name does not follow these conventions. It is recommended that you immediately register under a name conforming to the conventions.
Also since this topic is not relevant to the Threads and Synchronization area I am transfering it to an apporpriate forum.
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic