How to customize icon in title bar of jdialog

Hi All,I like to set a icon in the title bar of jdialog.Currently i am working on linux.Can anybody send me the code and help me.RegardsPrincy
[184 byte] By [rose@rosea] at [2007-11-27 6:47:37]
# 1
d.setIconImage(img);
j_shadinataa at 2007-7-12 18:20:33 > top of Java-index,Java Essentials,Java Programming...
# 2
wat is d?
rose@rosea at 2007-7-12 18:20:33 > top of Java-index,Java Essentials,Java Programming...
# 3
a jdialog
j_shadinataa at 2007-7-12 18:20:33 > top of Java-index,Java Essentials,Java Programming...
# 4
Hi there is no seticonimage() function in jdialog.Please check it.Sent me the full code.
rose@rosea at 2007-7-12 18:20:33 > top of Java-index,Java Essentials,Java Programming...
# 5
its method in java.awt.Window which is super class from javax.swing.JDialog.
j_shadinataa at 2007-7-12 18:20:33 > top of Java-index,Java Essentials,Java Programming...
# 6
hiIt is saying that seticonimage() is undefined for dialog and jdialog.I ve imported java.awt.*still its saying like this
rose@rosea at 2007-7-12 18:20:33 > top of Java-index,Java Essentials,Java Programming...
# 7
it's comes in version 1.6. i think you should update your jdk.
j_shadinataa at 2007-7-12 18:20:33 > top of Java-index,Java Essentials,Java Programming...
# 8
thank you.
rose@rosea at 2007-7-12 18:20:33 > top of Java-index,Java Essentials,Java Programming...
# 9
your welcome...does it work? i never tried it before =)
j_shadinataa at 2007-7-12 18:20:33 > top of Java-index,Java Essentials,Java Programming...
# 10
Now i don't have 1.6 version
rose@rosea at 2007-7-12 18:20:33 > top of Java-index,Java Essentials,Java Programming...