diff options
author | Yana Stamcheva <yana@jitsi.org> | 2008-06-12 10:04:40 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2008-06-12 10:04:40 +0000 |
commit | 3445e3452e67d40dda99624a5a5ba80e4d26b7bb (patch) | |
tree | 81b8196a87205d23ae2082209e89f47a9ea8ba99 /src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java | |
parent | 797b173f0ddca9df21d9779fdb3e8bb33be74155 (diff) | |
download | jitsi-3445e3452e67d40dda99624a5a5ba80e4d26b7bb.zip jitsi-3445e3452e67d40dda99624a5a5ba80e4d26b7bb.tar.gz jitsi-3445e3452e67d40dda99624a5a5ba80e4d26b7bb.tar.bz2 |
Fix close, open group icons in contact list.
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 | 8 |
1 files changed, 4 insertions, 4 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 e8cac03..d5060c5 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 @@ -168,8 +168,6 @@ public class ContactListCellRenderer extends JPanel buttonsPanelWidth, 16); this.nameLabel.setBounds( 0, 0, list.getWidth() - 2 - buttonsPanelWidth, 17); - - this.add(buttonsPanel, BorderLayout.EAST); this.isLeaf = true; } else if (value instanceof MetaContactGroup) { @@ -194,9 +192,9 @@ public class ContactListCellRenderer extends JPanel //this.remove(buttonsPanel); this.buttonsPanel.removeAll(); - + JLabel groupContentIndicator = new JLabel(); - + if(((ContactListModel)list.getModel()).isGroupClosed(groupItem)) groupContentIndicator.setIcon(new ImageIcon(ImageLoader .getImage(ImageLoader.CLOSED_GROUP))); @@ -218,6 +216,8 @@ public class ContactListCellRenderer extends JPanel this.isLeaf = false; } + this.add(buttonsPanel, BorderLayout.EAST); + toolTipText += "</html>"; this.setToolTipText(toolTipText); |