From b6fc7ccf12f968bd38e8562096d978628fc20625 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Wed, 14 Nov 2007 10:58:29 +0000 Subject: [PATCH] - remove old wizard icon before adding the new one - don't save the size of the wizard, pack all panels --- .../impl/gui/customcontrols/wizard/Wizard.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/net/java/sip/communicator/impl/gui/customcontrols/wizard/Wizard.java b/src/net/java/sip/communicator/impl/gui/customcontrols/wizard/Wizard.java index 00b795880..c460d4363 100644 --- a/src/net/java/sip/communicator/impl/gui/customcontrols/wizard/Wizard.java +++ b/src/net/java/sip/communicator/impl/gui/customcontrols/wizard/Wizard.java @@ -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); }