how to keep a IconImage on TitleBar of JDialog

Hi,I need to a keep a IconImage on TitleBar of JDialog similar to keep a IconImage on the JFrame by the following method,myFrame.setIconImage(frameIcon.getImage());
[185 byte] By [sheelata] at [2007-11-26 18:17:58]
# 1
Parent of the dialog must be a frame with the icon.regards,Stas
StanislavLa at 2007-7-9 5:51:36 > top of Java-index,Desktop,Core GUI APIs...
# 2
My application is starts with the login dialog box,so i am passing the parent is new JFrame(),any way my Parent Frame is not a visible one.But i need to set the company icon on the login dialog box.so can u guide me how to go ahead?
sheelata at 2007-7-9 5:51:36 > top of Java-index,Desktop,Core GUI APIs...