Here you can find the source of jdialog$setIconImage(JDialog dlg, Image image)
public static void jdialog$setIconImage(JDialog dlg, Image image)
//package com.java2s; //License from project: Open Source License import java.awt.Image; import java.lang.reflect.Method; import javax.swing.JDialog; public class Main { public static void jdialog$setIconImage(JDialog dlg, Image image) { try {/*from w w w . j a v a2 s.com*/ Method e = dlg.getClass().getMethod("setIconImage", new Class[] { Image.class }); e.invoke(dlg, new Object[] { image }); } catch (Exception var3) { var3.printStackTrace(); } } }