diff options
author | Yana Stamcheva <yana@jitsi.org> | 2006-11-14 14:52:47 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2006-11-14 14:52:47 +0000 |
commit | 4305a2fc1e3787f763c17900b52d3bd797c5b530 (patch) | |
tree | 4f9f5da3fb2b82e883adae313ca2b63416b8f046 /src/net/java/sip/communicator/impl/gui/main/contactlist/RenameContactPanel.java | |
parent | f93751680a2c4ea76e9326c78cd3990827a347bd (diff) | |
download | jitsi-4305a2fc1e3787f763c17900b52d3bd797c5b530.zip jitsi-4305a2fc1e3787f763c17900b52d3bd797c5b530.tar.gz jitsi-4305a2fc1e3787f763c17900b52d3bd797c5b530.tar.bz2 |
rename dialog contains now the contact name selected
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/RenameContactPanel.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/RenameContactPanel.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/RenameContactPanel.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/RenameContactPanel.java index 0caff3b..322d7cd 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/RenameContactPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/RenameContactPanel.java @@ -12,6 +12,7 @@ import javax.swing.*; import net.java.sip.communicator.impl.gui.customcontrols.*; import net.java.sip.communicator.impl.gui.i18n.*; import net.java.sip.communicator.impl.gui.utils.*; +import net.java.sip.communicator.service.contactlist.MetaContact; /** * The <tt>RenameContactPanel</tt> is where the user could change the name of @@ -43,8 +44,11 @@ public class RenameContactPanel extends JPanel { /** * Creates an instance of <tt>RenameContactPanel</tt> and initializes it. */ - public RenameContactPanel() { + public RenameContactPanel(String oldName) { super(new BorderLayout()); + + this.textField.setText(oldName); + this.textField.select(0, oldName.length()); this.setPreferredSize(new Dimension(500, 200)); |