Java JDialog Icon jdialog$setIconImage(JDialog dlg, Image image)

Here you can find the source of jdialog$setIconImage(JDialog dlg, Image image)

Description

jdialoset Icon Image

License

Open Source License

Declaration

public static void jdialog$setIconImage(JDialog dlg, Image image) 

Method Source Code


//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();
        }

    }
}

Related

  1. setDialogIcon(JDialog dialog, InputStream imageInputStream)
  2. setDialogIcon(JDialog dlg)
  3. setIconImage(JDialog j, Image b)
  4. setWindowIcon(JDialog jd)