I can put title on my main frame to replace the java cup with my own image with setIconImage(myIconImage);

When I invoke my custom dialogs, there is no icon, even though my main frame is specified on the create (new JDialog(mainFrame, "Title Text");

Can I get a custom title icon here?