Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Viveka Fischer   on Jan 14 In Java Category.

  
Question Answered By: Vidhya Iyer   on Jan 14

The first thing you have to do is load an
image....<br><br>There are all kinds of ways to do this. I do this in a
java application  like this....<br><br><br>Toolkit kit
= Toolkit.getDefaultToolkit();<br>Image image =
kit.getImage(url);<br>Image image = kit.getImage(filename);<br><br>Next,
there is a method in the JFrame or awt Frame<br>class
(which should be the base class for your applications'
frame) called <br><br>setIconImage(image);<br><br>Use
that and it should set your icon  in the upper left
corner... It will also be use for the icon when you
minumize it....<br><br>Stephen
McConnell<br>http://www.crosslogic.com

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on how do i get the icon in place Or get search suggestion and latest updates.


Tagged: