Thursday, August 22, 2002 09:46 PM
I am not very sure of this answer but I will say it anyway...
when you call a showOptionDialog or any show methods the JOptionPane creates a JDialog. The Icon for this is set as the Icon of the ParentComponent if the ParentComponent happens to be a Frame. So all you need to do is set the ImageIcon of the Parent Frame and pass this frame to the showMessageDialog method of the JOptionPane
Hope that is helpful.