List of usage examples for javax.swing JFrame getIconImage
public Image getIconImage()
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; } }