Example usage for javax.swing JFrame getIconImage

List of usage examples for javax.swing JFrame getIconImage

Introduction

In this page you can find the example usage for javax.swing JFrame getIconImage.

Prototype

public Image getIconImage() 

Source Link

Document

Returns the image to be displayed as the icon for this frame.

Usage

From source file:org.n52.ifgicopter.spf.gui.PluginRegistrationDialog.java

/**
 * @param frame//w w w. j  a v a 2 s.co  m
 *        the parent frame
 */
public PluginRegistrationDialog(JFrame parent) {
    Wizard wizard = new Wizard(parent);

    WizardPanelDescriptor intro = new IntroPanel();
    wizard.registerWizardPanel(FIRST_DESCRIPTOR, intro);

    wizard.setCurrentPanel(FIRST_DESCRIPTOR);
    wizard.setTitle("Configure Plugins");

    this.result = new ResultPanel();
    wizard.registerWizardPanel(SECOND_DESCRIPTOR, this.result);

    this.choice = new PluginChoicePanel();
    wizard.registerWizardPanel(THIRD_DESCRIPTOR, this.choice);

    this.setup = new ConstructorSetupPanel();
    wizard.registerWizardPanel(FOURTH_DESCRIPTOR, this.setup);

    wizard.getDialog().setIconImage(parent.getIconImage());

    this.ret = wizard.showModalDialog();

    /*
     * this is a cancel
     */
    if (this.ret == Wizard.CANCEL_RETURN_CODE) {
        this.canceled = true;
    }

}