1 posts in topic
Flat View  Flat View

Posted By:   Luigi_Pippo
Posted On:   Thursday, August 22, 2002 07:31 AM

How to change in JOptionPane the title image icon from steaming cup to custom icon ?

Re: JOptionPane

Posted By:   Ajit_Srivastava  
Posted On:   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.


About | Sitemap | Contact