diff options
author | Yana Stamcheva <yana@jitsi.org> | 2010-09-27 16:02:12 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2010-09-27 16:02:12 +0000 |
commit | a4ddb0361ebc3848e30eefbf0391c755adb3387c (patch) | |
tree | bce7c351a63766840af4534e9bc5ecbd0c8ac429 /src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java | |
parent | 8f7582b1785d9c40ecb306a6d4ed0a6cafc66be4 (diff) | |
download | jitsi-a4ddb0361ebc3848e30eefbf0391c755adb3387c.zip jitsi-a4ddb0361ebc3848e30eefbf0391c755adb3387c.tar.gz jitsi-a4ddb0361ebc3848e30eefbf0391c755adb3387c.tar.bz2 |
Patch provided by Adam Netocny making all contact list classes skinnable.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java index c16dc4f..85ef51b 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/UnknownContactPanel.java @@ -17,6 +17,7 @@ import net.java.sip.communicator.impl.gui.*; import net.java.sip.communicator.impl.gui.main.*; import net.java.sip.communicator.impl.gui.main.call.*; import net.java.sip.communicator.service.protocol.*; +import net.java.sip.communicator.util.skin.*; import net.java.sip.communicator.util.swing.*; import net.java.sip.communicator.util.swing.event.*; @@ -27,20 +28,18 @@ import net.java.sip.communicator.util.swing.event.*; * the contact list. * * @author Yana Stamcheva + * @author Adam Netocny */ public class UnknownContactPanel extends TransparentPanel - implements TextFieldChangeListener + implements TextFieldChangeListener, + Skinnable { private final JButton addContact = new JButton( - GuiActivator.getResources().getI18NString("service.gui.ADD_CONTACT"), - GuiActivator.getResources() - .getImage("service.gui.icons.ADD_CONTACT_16x16_ICON")); + GuiActivator.getResources().getI18NString("service.gui.ADD_CONTACT")); private final JButton callContact = new JButton( - GuiActivator.getResources().getI18NString("service.gui.CALL_CONTACT"), - GuiActivator.getResources() - .getImage("service.gui.icons.CALL_16x16_ICON")); + GuiActivator.getResources().getI18NString("service.gui.CALL_CONTACT")); private final JTextPane textArea = new JTextPane(); @@ -128,6 +127,8 @@ public class UnknownContactPanel } } }); + + loadSkin(); } /** @@ -197,4 +198,15 @@ public class UnknownContactPanel this.revalidate(); this.repaint(); } + + /** + * Reloads button resources. + */ + public void loadSkin() + { + addContact.setIcon(GuiActivator.getResources() + .getImage("service.gui.icons.ADD_CONTACT_16x16_ICON")); + callContact.setIcon(GuiActivator.getResources() + .getImage("service.gui.icons.CALL_16x16_ICON")); + } } |