Some adjustments to "Add contact" and "Create chat room" wizards.

cusax-fix
Yana Stamcheva 18 years ago
parent 7d86508131
commit 7bf7c06366

@ -44,7 +44,7 @@ public class ChatRoomNamePanel
private JLabel iconLabel = new JLabel(new ImageIcon(ImageLoader
.getImage(ImageLoader.ADD_CONTACT_WIZARD_ICON)));
private JPanel labelsPanel = new JPanel(new GridLayout(0, 1));
private JPanel labelsPanel = new JPanel(new GridLayout(0, 1, 10, 10));
private JPanel rightPanel = new JPanel(new BorderLayout());
@ -65,29 +65,36 @@ public ChatRoomNamePanel()
public ChatRoomNamePanel(WizardContainer wizard)
{
super(new BorderLayout());
this.parentWizard = wizard;
this.iconLabel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 10));
this.setBorder(
BorderFactory.createEmptyBorder(10, 10, 10, 10));
this.iconLabel.setBorder(
BorderFactory.createEmptyBorder(0, 10, 10, 10));
this.infoLabel.setEditable(false);
this.dataPanel.add(nameLabel, BorderLayout.WEST);
this.dataPanel.add(textField, BorderLayout.CENTER);
this.infoTitleLabel.setHorizontalAlignment(JLabel.CENTER);
this.infoTitleLabel.setFont(Constants.FONT.deriveFont(Font.BOLD, 18));
this.labelsPanel.add(infoTitleLabel);
this.labelsPanel.add(infoLabel);
this.labelsPanel.add(dataPanel);
this.rightPanel.setBorder(
BorderFactory.createEmptyBorder(0, 10, 10, 10));
this.rightPanel.add(labelsPanel, BorderLayout.NORTH);
this.add(iconLabel, BorderLayout.WEST);
this.add(rightPanel, BorderLayout.CENTER);
this.textField.getDocument().addDocumentListener(this);
}

@ -46,7 +46,7 @@ public class SelectAccountPanel extends JPanel
private JPanel labelsPanel = new JPanel(new GridLayout(0, 1));
private JPanel rightPanel = new JPanel(new BorderLayout(5, 5));
private JPanel rightPanel = new JPanel(new BorderLayout(10, 10));
private JLabel iconLabel = new JLabel(new ImageIcon(ImageLoader
.getImage(ImageLoader.ADD_CONTACT_WIZARD_ICON)));
@ -73,12 +73,16 @@ public SelectAccountPanel(NewChatRoom newChatRoom,
{
super(new BorderLayout());
this.setBorder(BorderFactory
.createEmptyBorder(10, 10, 10, 10));
this.setPreferredSize(new Dimension(600, 400));
this.newChatRoom = newChatRoom;
this.protocolProvidersList = protocolProvidersList;
this.iconLabel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 10));
this.iconLabel.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));
this.infoLabel.setEditable(false);
@ -87,6 +91,9 @@ public SelectAccountPanel(NewChatRoom newChatRoom,
this.labelsPanel.add(infoTitleLabel);
this.labelsPanel.add(infoLabel);
this.rightPanel.setBorder(
BorderFactory.createEmptyBorder(0, 10, 10, 10));
this.rightPanel.add(labelsPanel, BorderLayout.NORTH);
this.rightPanel.add(tablePane, BorderLayout.CENTER);

@ -45,7 +45,7 @@ public class AddContactPanel
private JLabel iconLabel = new JLabel(new ImageIcon(ImageLoader
.getImage(ImageLoader.ADD_CONTACT_WIZARD_ICON)));
private JPanel labelsPanel = new JPanel(new GridLayout(0, 1));
private JPanel labelsPanel = new JPanel(new GridLayout(0, 1, 10, 10));
private JPanel rightPanel = new JPanel(new BorderLayout());
@ -66,31 +66,38 @@ public AddContactPanel()
public AddContactPanel(WizardContainer wizard)
{
super(new BorderLayout());
this.parentWizard = wizard;
this.setPreferredSize(new Dimension(650, 300));
this.iconLabel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 10));
this.setBorder(
BorderFactory.createEmptyBorder(10, 10, 10, 10));
this.iconLabel.setBorder(
BorderFactory.createEmptyBorder(0, 10, 10, 10));
this.infoLabel.setEditable(false);
this.dataPanel.add(uinLabel, BorderLayout.WEST);
this.dataPanel.add(textField, BorderLayout.CENTER);
this.infoTitleLabel.setHorizontalAlignment(JLabel.CENTER);
this.infoTitleLabel.setFont(Constants.FONT.deriveFont(Font.BOLD, 18));
this.labelsPanel.add(infoTitleLabel);
this.labelsPanel.add(infoLabel);
this.labelsPanel.add(infoLabel);
this.labelsPanel.add(dataPanel);
this.rightPanel.setBorder(
BorderFactory.createEmptyBorder(0, 10, 10, 10));
this.rightPanel.add(labelsPanel, BorderLayout.NORTH);
this.add(iconLabel, BorderLayout.WEST);
this.add(rightPanel, BorderLayout.CENTER);
this.textField.getDocument().addDocumentListener(this);
}

@ -48,7 +48,7 @@ public class SelectAccountPanel
private JPanel labelsPanel = new JPanel(new GridLayout(0, 1));
private JPanel rightPanel = new JPanel(new BorderLayout(5, 5));
private JPanel rightPanel = new JPanel(new BorderLayout(10, 10));
private JLabel iconLabel = new JLabel(new ImageIcon(ImageLoader
.getImage(ImageLoader.ADD_CONTACT_WIZARD_ICON)));
@ -73,10 +73,14 @@ public SelectAccountPanel(NewContact newContact,
{
super(new BorderLayout());
this.setPreferredSize(new Dimension(500, 200));
this.newContact = newContact;
this.iconLabel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 10));
this.setBorder(BorderFactory
.createEmptyBorder(10, 10, 10, 10));
this.setPreferredSize(new Dimension(500, 200));
this.iconLabel.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));
this.infoLabel.setEditable(false);
@ -90,6 +94,9 @@ public SelectAccountPanel(NewContact newContact,
this.add(iconLabel, BorderLayout.WEST);
this.rightPanel.setBorder(
BorderFactory.createEmptyBorder(0, 10, 10, 10));
this.add(rightPanel, BorderLayout.CENTER);
this.tableInit(protocolProvidersList);

@ -40,11 +40,9 @@ public class SelectGroupPanel
private JLabel infoTitleLabel = new JLabel(
Messages.getI18NString("selectGroupWizardTitle").getText());
private JPanel labelsPanel = new JPanel(new GridLayout(0, 1));
private JPanel labelsPanel = new JPanel(new GridLayout(0, 1, 10, 10));
private JPanel rightPanel = new JPanel(new BorderLayout(10, 10));
private JPanel rightNorthPanel = new JPanel();
private JPanel rightPanel = new JPanel(new BorderLayout());
private JLabel iconLabel = new JLabel(new ImageIcon(ImageLoader
.getImage(ImageLoader.ADD_CONTACT_WIZARD_ICON)));
@ -67,31 +65,31 @@ public SelectGroupPanel(AddContactWizard wizard,
this.parentWizard = wizard;
this.setPreferredSize(new Dimension(500, 200));
this.setBorder(BorderFactory
.createEmptyBorder(10, 10, 10, 10));
this.iconLabel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 10));
this.setPreferredSize(new Dimension(500, 200));
this.rightNorthPanel.setLayout(
new BoxLayout(rightNorthPanel, BoxLayout.Y_AXIS));
this.iconLabel.setBorder(
BorderFactory.createEmptyBorder(0, 10, 10, 10));
this.groupCombo.setPreferredSize(new Dimension(300, 22));
this.groupCombo.addItemListener(this);
this.infoLabel.setEditable(false);
this.infoTitleLabel.setHorizontalAlignment(JLabel.CENTER);
this.infoTitleLabel.setFont(Constants.FONT.deriveFont(Font.BOLD, 18));
this.labelsPanel.add(infoTitleLabel);
this.labelsPanel.add(infoLabel);
this.rightNorthPanel.add(labelsPanel);
this.rightNorthPanel.add(groupPanel);
this.rightPanel.setBorder(BorderFactory.createEmptyBorder(10, 5, 10, 5));
this.rightPanel.add(rightNorthPanel, BorderLayout.NORTH);
this.labelsPanel.add(groupPanel);
this.rightPanel.setBorder(
BorderFactory.createEmptyBorder(0, 10, 10, 10));
this.rightPanel.add(labelsPanel, BorderLayout.NORTH);
this.add(iconLabel, BorderLayout.WEST);
this.add(rightPanel, BorderLayout.CENTER);

Loading…
Cancel
Save