Add contact dialog enhancments.

cusax-fix
Yana Stamcheva 16 years ago
parent f13d08f9c6
commit 313dc12510

@ -34,6 +34,7 @@ service.gui.ACCOUNTS=Accounts
service.gui.ADD=&Add
service.gui.ADD_ACCOUNT=Add account
service.gui.ADD_CONTACT=&Add contact
service.gui.ADD_CONTACT_TO=&Add contact to
service.gui.ADD_CONTACT_ERROR=Failed to add contact with id: {0}
service.gui.ADD_CONTACT_ERROR_TITLE=Add contact Error
service.gui.ADD_CONTACT_EXIST_ERROR=The contact {0} already exists in your contact list.
@ -403,7 +404,6 @@ service.gui.SECURITY_WARNING=Security warning
service.gui.SECURITY_ERROR=Security error
service.gui.SPEED=Speed:
service.gui.SILENT_MEMBER=silent member
service.gui.TO=to
service.gui.JANUARY=Jan
service.gui.FEBRUARY=Feb

@ -96,11 +96,10 @@ public AddContactDialog(MainFrame parentWindow, MetaContact metaContact)
this.metaContact = metaContact;
this.setSelectedGroup(metaContact.getParentMetaContactGroup());
this.groupCombo.setEnabled(false);
this.setTitle(GuiActivator.getResources()
.getI18NString("service.gui.ADD_CONTACT")
+ " " + GuiActivator.getResources()
.getI18NString("service.gui.TO")
.getI18NString("service.gui.ADD_CONTACT_TO")
+ " " + metaContact.getDisplayName());
}
@ -178,7 +177,7 @@ private void init()
this.getContentPane().add(mainPanel, BorderLayout.NORTH);
this.getContentPane().add(createButtonsPanel(), BorderLayout.SOUTH);
this.setPreferredSize(new Dimension(400, 200));
this.setPreferredSize(new Dimension(450, 200));
}
/**

@ -89,9 +89,7 @@ public class ContactRightButtonMenu
private final SIPCommMenu callContactMenu = new SIPCommMenu(callString);
private final JMenuItem addContactItem
= new JMenuItem(GuiActivator.getResources()
.getI18NString("service.gui.ADD_CONTACT") + "...");
private final JMenuItem addContactItem = new JMenuItem();
private final JMenuItem callItem = new JMenuItem(
callString,
@ -164,6 +162,10 @@ public ContactRightButtonMenu( MetaContact contactItem,
*/
private void init()
{
addContactItem.setText(GuiActivator.getResources()
.getI18NString("service.gui.ADD_CONTACT_TO")
+ " " + contactItem.getDisplayName());
this.moveToMenu.setIcon(new ImageIcon(ImageLoader
.getImage(ImageLoader.GROUPS_16x16_ICON)));

Loading…
Cancel
Save