I succeeded in setting the application's icon with Frame.setIconImage(Image).
But I can't figure out how to set the icon of a dialog. Is there a way to do this? I heard it can be done only in jdk 1.1.7 or higher, is it true?
Thank you in advance!
Printable View
I succeeded in setting the application's icon with Frame.setIconImage(Image).
But I can't figure out how to set the icon of a dialog. Is there a way to do this? I heard it can be done only in jdk 1.1.7 or higher, is it true?
Thank you in advance!
I was able to set the icon in my JDialog by setting it in the JFrame
as you describe, and then creating the JDialog by passing the JFrame as the
constructor argument.