Application Icon in Windows

How can I change the coffe cup icon of my Java application?The icon I磎 reffering to is the one on the top-left corner of my app windows, and also when the user goes alt-tab.Thanks
[200 byte] By [RobertoZozayaa] at [2007-11-27 2:43:42]
# 1

Hi Roberto,

to do this you need to use method JFrame.setIconImage(...);

Example:

// Frame initialization

private void initFrame() {

this.setTitle("Custom Icon");

ImageIcon image = new ImageIco("img/icon.GIF");

this.setIconImage(image.getImage());

}

Cheers,

Milan Boruvka

www.boruvka.net/blog

Milan.Boruvkaa at 2007-7-12 3:09:34 > top of Java-index,Desktop,Developing for the Desktop...