how to set Iconimage to title bar

i want some imge icon.ico to be my icon of my title bar .can any one tell me how it is.
[101 byte] By [kishorejhpa] at [2007-9-29 22:38:48]
# 1
I don't think java suport *.icosetIconImage( Toolkit.getDefaultToolkit().getImage( ClassLoader.getSystemResource("yourimage.gif") ) );
puffhansa at 2007-7-16 3:01:16 > top of Java-index,Archived Forums,Java Programming...
# 2

What about using JIMI. Look at the description above:

Jimi is a class library for managing images. Its primary function is image I/O. Jimi was formerly a product of Activated Intelligence. Sun is making it available for developers who have code with dependencies on Jimi or for those who need image I/O functionality in applications running under 1.1.x versions of the Java Platform. Jimi's range of supported formats includes GIF, JPEG, TIFF, PNG, PICT, Photoshop, BMP, Targa, ICO, CUR, Sunraster, XBM, XPM, and PCX, although some of these formats do not have complete support for all features.

For developers interested in image I/O on the Java 2 Platform, a set of image I/O classes is packaged with the Java Advanced Imaging API (see the com.sun.media.jai.codec package). A standard extension for image I/O on the Java 2 Platform is currently being developed under the Java Community Process.

You can find it in:

http://java.sun.com/products/jimi/

hope it helps

aureliocalegaria at 2007-7-16 3:01:16 > top of Java-index,Archived Forums,Java Programming...
# 3
Try this: (only works in a frame)ImageIcon image = new ImageIcon("C:\\path\\to\\some.gif");frame.setIconImage(image.getImage());
ChuckBinga at 2007-7-16 3:01:16 > top of Java-index,Archived Forums,Java Programming...