diff options
author | Damian Minkov <damencho@jitsi.org> | 2007-11-27 16:27:51 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2007-11-27 16:27:51 +0000 |
commit | 0d4c6b51a68e82b1f79f90f9e5560973d9839339 (patch) | |
tree | ec2c771cf34124cdce6524a7a07c1a9de13bb8b8 /src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java | |
parent | daf20bc6252e41aa95d4a0b8b782157a8ad8e417 (diff) | |
download | jitsi-0d4c6b51a68e82b1f79f90f9e5560973d9839339.zip jitsi-0d4c6b51a68e82b1f79f90f9e5560973d9839339.tar.gz jitsi-0d4c6b51a68e82b1f79f90f9e5560973d9839339.tar.bz2 |
1. Improve status messages (incoming and outgoing)
2. Fix systrayservice not to throw an exception if not initialized
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java index a7510eb..aa47bd8 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java @@ -143,12 +143,15 @@ public class ContactListCellRenderer extends JPanel String contactDisplayName = protocolContact.getDisplayName(); String contactAddress = protocolContact.getAddress(); + String statusMessage = protocolContact.getStatusMessage(); toolTipText += "<br>" + ((!contactDisplayName .equals(contactAddress)) ? contactDisplayName + " ("+contactAddress + ")" - : contactDisplayName); + : contactDisplayName) + + ((statusMessage != null && statusMessage.length() > 0) + ? " - " + statusMessage : ""); } this.buttonsPanel.setPreferredSize( new Dimension(buttonsPanelWidth, 16)); |