diff --git a/src/net/java/sip/communicator/impl/gui/main/account/AccountRegWizardContainerImpl.java b/src/net/java/sip/communicator/impl/gui/main/account/AccountRegWizardContainerImpl.java index ca8ca78f4..9639f2315 100644 --- a/src/net/java/sip/communicator/impl/gui/main/account/AccountRegWizardContainerImpl.java +++ b/src/net/java/sip/communicator/impl/gui/main/account/AccountRegWizardContainerImpl.java @@ -15,6 +15,7 @@ import net.java.sip.communicator.impl.gui.customcontrols.wizard.*; import net.java.sip.communicator.impl.gui.i18n.*; import net.java.sip.communicator.impl.gui.main.*; +import net.java.sip.communicator.impl.gui.utils.*; import net.java.sip.communicator.service.configuration.*; import net.java.sip.communicator.service.gui.*; import net.java.sip.communicator.service.gui.event.*; @@ -26,9 +27,10 @@ * * @author Yana Stamcheva */ -public class AccountRegWizardContainerImpl extends Wizard - implements AccountRegistrationWizardContainer { - +public class AccountRegWizardContainerImpl + extends Wizard + implements AccountRegistrationWizardContainer +{ private static final Logger logger = Logger .getLogger(AccountRegWizardContainerImpl.class); @@ -58,8 +60,10 @@ public AccountRegWizardContainerImpl(MainFrame mainFrame) this.summaryPage = new AccountRegSummaryPage(this); this.addAccountRegistrationListener(firstPage); + + this.setWizzardIcon(ImageLoader.getImage(ImageLoader.WINDOW_LOGO)); } - + /** * Adds the given AccountRegistrationWizard to the list of * containing wizards. diff --git a/src/net/java/sip/communicator/impl/gui/main/account/NoAccountFoundPage.java b/src/net/java/sip/communicator/impl/gui/main/account/NoAccountFoundPage.java index 86cb778df..716327a08 100644 --- a/src/net/java/sip/communicator/impl/gui/main/account/NoAccountFoundPage.java +++ b/src/net/java/sip/communicator/impl/gui/main/account/NoAccountFoundPage.java @@ -1,12 +1,12 @@ /* * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client. - * - * Distributable under LGPL license. - * See terms of license at gnu.org. + * + * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.impl.gui.main.account; import java.awt.*; + import javax.swing.*; import net.java.sip.communicator.impl.gui.i18n.*; @@ -14,41 +14,48 @@ import net.java.sip.communicator.service.gui.*; /** - * The NoAccountFoundPage is the page shown in the account registration - * wizard shown in the beginning of the program, when no registered accounts are - * found. + * The NoAccountFoundPage is the page shown in the account + * registration wizard shown in the beginning of the program, when no registered + * accounts are found. + * * @author Yana Stamcheva */ -public class NoAccountFoundPage extends JPanel - implements WizardPage { - +public class NoAccountFoundPage + extends JPanel + implements WizardPage +{ private static String NO_ACCOUNT_FOUND_PAGE = "NoAccountFoundPage"; - - private JTextArea messageArea - = new JTextArea(Messages.getI18NString("noAccountFound").getText()); - + + private JTextArea messageArea = + new JTextArea(Messages.getI18NString("noAccountFound").getText()); + /** * Creates an instance of NoAccountFoundPage. */ - public NoAccountFoundPage() { + public NoAccountFoundPage() + { super(new BorderLayout()); - + + this.setPreferredSize(new Dimension(300, 380)); + this.messageArea.setLineWrap(true); this.messageArea.setWrapStyleWord(true); this.messageArea.setEditable(false); this.messageArea.setFont(Constants.FONT.deriveFont(Font.BOLD, 14f)); this.messageArea.setOpaque(false); - + + this.messageArea.setBorder(BorderFactory.createEmptyBorder( + 25, 10, 10, 10)); + this.add(messageArea, BorderLayout.CENTER); - - this.setBorder(BorderFactory.createEmptyBorder(55, 10, 10, 10)); } - + /** - * Implements the WizardPage.getIdentifier method. - * Returns the identifier of this page. + * Implements the WizardPage.getIdentifier method. Returns the + * identifier of this page. */ - public Object getIdentifier() { + public Object getIdentifier() + { return NO_ACCOUNT_FOUND_PAGE; } @@ -56,39 +63,47 @@ public Object getIdentifier() { * Implements the WizardPage.getNextPageIdentifier method. * Returns the identifier of the default wizard page. */ - public Object getNextPageIdentifier() { + public Object getNextPageIdentifier() + { return WizardPage.DEFAULT_PAGE_IDENTIFIER; } /** * Implements the WizardPage.getBackPageIdentifier method. - * Returns null to identify that this is the first wizard page and - * this way to disable the "Back" wizard button. + * Returns null to identify that this is the first wizard page and this way + * to disable the "Back" wizard button. */ - public Object getBackPageIdentifier() { + public Object getBackPageIdentifier() + { return null; } /** - * Implements the WizardPage.getWizardForm method. - * Returns this panel. + * Implements the WizardPage.getWizardForm method. Returns this + * panel. */ - public Object getWizardForm() { + public Object getWizardForm() + { return this; } - public void pageHiding() { + public void pageHiding() + { } - public void pageShown() { + public void pageShown() + { } - public void pageShowing() { + public void pageShowing() + { } - public void pageNext() { + public void pageNext() + { } - public void pageBack() { + public void pageBack() + { } }