- remove old wizard icon before adding the new one

- don't save the size of the wizard, pack all panels
cusax-fix
Yana Stamcheva 18 years ago
parent f24b4713d6
commit b6fc7ccf12

@ -28,7 +28,9 @@
*/
public class Wizard
extends SIPCommDialog
implements WindowListener, WizardContainer, PropertyChangeListener
implements WindowListener,
WizardContainer,
PropertyChangeListener
{
/**
* The identifier of the summary wizard page.
@ -128,7 +130,7 @@ public class Wizard
*/
public Wizard(Dialog owner)
{
super(owner);
super(owner, false);
wizardModel = new WizardModel();
@ -144,7 +146,7 @@ public Wizard(Dialog owner)
*/
public Wizard(Frame owner)
{
super(owner);
super(owner, false);
wizardModel = new WizardModel();
@ -253,7 +255,6 @@ public boolean containsPage(Object id)
*/
public void setCurrentPage(Object id)
{
// Get the hashtable reference to the panel that should
// be displayed. If the identifier passed in is null, then close
// the dialog.
@ -536,6 +537,7 @@ public void setWizzardIcon(BufferedImage wizardIcon)
.createTitledBorder("")));
this.wizardIconLabel.setIcon(new ImageIcon(wizardIcon));
this.wizardIconPanel.removeAll();
this.wizardIconPanel.add(wizardIconLabel);
}

Loading…
Cancel
Save