From b57e8e1b693e0bf559f52c25dc160a58a605f830 Mon Sep 17 00:00:00 2001 From: Yana Stamcheva Date: Thu, 21 Dec 2006 13:16:38 +0000 Subject: [PATCH] example user id for all 4 protocols --- .../plugin/icqaccregwizz/FirstWizardPage.java | 20 ++++++++++++++++--- .../jabberaccregwizz/FirstWizardPage.java | 19 ++++++++++++++++-- .../plugin/msnaccregwizz/FirstWizardPage.java | 18 +++++++++++++++-- .../plugin/sipaccregwizz/FirstWizardPage.java | 18 +++++++++++++++-- 4 files changed, 66 insertions(+), 9 deletions(-) diff --git a/src/net/java/sip/communicator/plugin/icqaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/icqaccregwizz/FirstWizardPage.java index 158af3e4e..6c342241f 100644 --- a/src/net/java/sip/communicator/plugin/icqaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/icqaccregwizz/FirstWizardPage.java @@ -31,12 +31,16 @@ public class FirstWizardPage extends JPanel private JPanel uinPassPanel = new JPanel(new BorderLayout(10, 10)); - private JPanel labelsPanel = new JPanel(new GridLayout(0, 1, 10, 10)); + private JPanel labelsPanel = new JPanel(); - private JPanel valuesPanel = new JPanel(new GridLayout(0, 1, 10, 10)); + private JPanel valuesPanel = new JPanel(); private JLabel uinLabel = new JLabel(Resources.getString("uin")); + private JPanel emptyPanel = new JPanel(); + + private JLabel uinExampleLabel = new JLabel("Ex: 83378997"); + private JLabel passLabel = new JLabel(Resources.getString("password")); private JLabel existingAccountLabel @@ -91,6 +95,10 @@ public FirstWizardPage(IcqAccountRegistration registration, this.init(); this.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); + + this.labelsPanel.setLayout(new BoxLayout(labelsPanel, BoxLayout.Y_AXIS)); + + this.valuesPanel.setLayout(new BoxLayout(valuesPanel, BoxLayout.Y_AXIS)); } /** @@ -103,10 +111,16 @@ private void init() { this.existingAccountLabel.setForeground(Color.RED); - labelsPanel.add(uinLabel); + this.uinExampleLabel.setForeground(Color.GRAY); + this.uinExampleLabel.setFont(uinExampleLabel.getFont().deriveFont(8)); + this.emptyPanel.setMaximumSize(new Dimension(40, 25)); + + labelsPanel.add(uinLabel); + labelsPanel.add(emptyPanel); labelsPanel.add(passLabel); valuesPanel.add(uinField); + valuesPanel.add(uinExampleLabel); valuesPanel.add(passField); uinPassPanel.add(labelsPanel, BorderLayout.WEST); diff --git a/src/net/java/sip/communicator/plugin/jabberaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/jabberaccregwizz/FirstWizardPage.java index 7c78a70f4..739e39c80 100644 --- a/src/net/java/sip/communicator/plugin/jabberaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/jabberaccregwizz/FirstWizardPage.java @@ -33,9 +33,9 @@ public class FirstWizardPage extends JPanel private JPanel uinPassPanel = new JPanel(new BorderLayout(10, 10)); - private JPanel labelsPanel = new JPanel(new GridLayout(0, 1, 10, 10)); + private JPanel labelsPanel = new JPanel(); - private JPanel valuesPanel = new JPanel(new GridLayout(0, 1, 10, 10)); + private JPanel valuesPanel = new JPanel(); private JLabel uinLabel = new JLabel(Resources.getString("uin")); @@ -44,6 +44,11 @@ public class FirstWizardPage extends JPanel private JLabel existingAccountLabel = new JLabel(Resources.getString("existingAccount")); + private JPanel emptyPanel = new JPanel(); + + private JLabel uinExampleLabel = new JLabel("Ex: johnsmith@jabber.org"); + + private JTextField uinField = new JTextField(); private JPasswordField passField = new JPasswordField(); @@ -100,6 +105,10 @@ public FirstWizardPage(JabberAccountRegistration registration, this.init(); this.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); + + this.labelsPanel.setLayout(new BoxLayout(labelsPanel, BoxLayout.Y_AXIS)); + + this.valuesPanel.setLayout(new BoxLayout(valuesPanel, BoxLayout.Y_AXIS)); } /** @@ -111,10 +120,16 @@ private void init() { this.existingAccountLabel.setForeground(Color.RED); + this.uinExampleLabel.setForeground(Color.GRAY); + this.uinExampleLabel.setFont(uinExampleLabel.getFont().deriveFont(8)); + this.emptyPanel.setMaximumSize(new Dimension(40, 25)); + labelsPanel.add(uinLabel); + labelsPanel.add(emptyPanel); labelsPanel.add(passLabel); valuesPanel.add(uinField); + valuesPanel.add(uinExampleLabel); valuesPanel.add(passField); uinPassPanel.add(labelsPanel, BorderLayout.WEST); diff --git a/src/net/java/sip/communicator/plugin/msnaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/msnaccregwizz/FirstWizardPage.java index 285aaff69..eaf78494c 100644 --- a/src/net/java/sip/communicator/plugin/msnaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/msnaccregwizz/FirstWizardPage.java @@ -29,9 +29,9 @@ public class FirstWizardPage extends JPanel private JPanel uinPassPanel = new JPanel(new BorderLayout(10, 10)); - private JPanel labelsPanel = new JPanel(new GridLayout(0, 1, 10, 10)); + private JPanel labelsPanel = new JPanel(); - private JPanel valuesPanel = new JPanel(new GridLayout(0, 1, 10, 10)); + private JPanel valuesPanel = new JPanel(); private JLabel uinLabel = new JLabel(Resources.getString("uin")); @@ -40,6 +40,10 @@ public class FirstWizardPage extends JPanel private JLabel existingAccountLabel = new JLabel(Resources.getString("existingAccount")); + private JPanel emptyPanel = new JPanel(); + + private JLabel uinExampleLabel = new JLabel("Ex: johnsmith@hotmail.com"); + private JTextField uinField = new JTextField(); private JPasswordField passField = new JPasswordField(); @@ -78,6 +82,10 @@ public FirstWizardPage(MsnAccountRegistration registration, this.init(); this.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); + + this.labelsPanel.setLayout(new BoxLayout(labelsPanel, BoxLayout.Y_AXIS)); + + this.valuesPanel.setLayout(new BoxLayout(valuesPanel, BoxLayout.Y_AXIS)); } /** @@ -89,10 +97,16 @@ private void init() { this.existingAccountLabel.setForeground(Color.RED); + this.uinExampleLabel.setForeground(Color.GRAY); + this.uinExampleLabel.setFont(uinExampleLabel.getFont().deriveFont(8)); + this.emptyPanel.setMaximumSize(new Dimension(40, 25)); + labelsPanel.add(uinLabel); + labelsPanel.add(emptyPanel); labelsPanel.add(passLabel); valuesPanel.add(uinField); + valuesPanel.add(uinExampleLabel); valuesPanel.add(passField); uinPassPanel.add(labelsPanel, BorderLayout.WEST); diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java index 726121214..bcbf883e6 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/FirstWizardPage.java @@ -35,14 +35,18 @@ public class FirstWizardPage extends JPanel private JPanel uinPassPanel = new JPanel(new BorderLayout(10, 10)); - private JPanel labelsPanel = new JPanel(new GridLayout(0, 1, 10, 10)); + private JPanel labelsPanel = new JPanel(); - private JPanel valuesPanel = new JPanel(new GridLayout(0, 1, 10, 10)); + private JPanel valuesPanel = new JPanel(); private JLabel uinLabel = new JLabel(Resources.getString("uin")); private JLabel passLabel = new JLabel(Resources.getString("password")); + private JPanel emptyPanel = new JPanel(); + + private JLabel uinExampleLabel = new JLabel("Ex: john@voiphone.net"); + private JLabel existingAccountLabel = new JLabel(Resources.getString("existingAccount")); @@ -115,6 +119,10 @@ public FirstWizardPage(SIPAccountRegistration registration, this.init(); this.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); + + this.labelsPanel.setLayout(new BoxLayout(labelsPanel, BoxLayout.Y_AXIS)); + + this.valuesPanel.setLayout(new BoxLayout(valuesPanel, BoxLayout.Y_AXIS)); } /** @@ -127,10 +135,16 @@ private void init() { existingAccountLabel.setForeground(Color.RED); + this.uinExampleLabel.setForeground(Color.GRAY); + this.uinExampleLabel.setFont(uinExampleLabel.getFont().deriveFont(8)); + this.emptyPanel.setMaximumSize(new Dimension(40, 25)); + labelsPanel.add(uinLabel); + labelsPanel.add(emptyPanel); labelsPanel.add(passLabel); valuesPanel.add(uinField); + valuesPanel.add(uinExampleLabel); valuesPanel.add(passField); uinPassPanel.add(labelsPanel, BorderLayout.WEST);