posted 22 years ago
If you are talking about on the title bar of a JDialog, that is set to be the same as the icon on the title bar of the JDialog's parent Frame. To change the icon on the JDialog's parent Frame, call setIconImage( Image ) on it.
If you want to add an image in the contentPane of the JDialog, just add an ImageIcon to a JLabel and ad the JLabel to the JDialog.
-Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.