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/RenameGroupPanel.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/RenameGroupPanel.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/RenameGroupPanel.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/RenameGroupPanel.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/RenameGroupPanel.java index f66f71d..cbe8830 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/RenameGroupPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/RenameGroupPanel.java @@ -12,6 +12,7 @@ import javax.swing.*; import net.java.sip.communicator.impl.gui.*; import net.java.sip.communicator.impl.gui.customcontrols.*; import net.java.sip.communicator.impl.gui.utils.*; +import net.java.sip.communicator.util.skin.*; import net.java.sip.communicator.util.swing.*; /** @@ -19,9 +20,11 @@ import net.java.sip.communicator.util.swing.*; * meta contact group. * * @author Yana Stamcheva + * @author Adam Netocny */ public class RenameGroupPanel extends TransparentPanel + implements Skinnable { private JLabel uinLabel = new JLabel( GuiActivator.getResources().getI18NString("service.gui.NEW_NAME")); @@ -38,9 +41,7 @@ public class RenameGroupPanel private JLabel infoTitleLabel = new JLabel( GuiActivator.getResources().getI18NString("service.gui.RENAME_GROUP")); - private JLabel iconLabel - = new JLabel(new ImageIcon(ImageLoader.getImage( - ImageLoader.RENAME_DIALOG_ICON))); + private JLabel iconLabel = new JLabel(); private TransparentPanel labelsPanel = new TransparentPanel(new GridLayout(0, 1)); @@ -81,6 +82,8 @@ public class RenameGroupPanel this.add(iconLabel, BorderLayout.WEST); this.add(rightPanel, BorderLayout.CENTER); + + loadSkin(); } /** @@ -100,4 +103,13 @@ public class RenameGroupPanel { this.textField.requestFocus(); } + + /** + * Reloads the icon. + */ + public void loadSkin() + { + iconLabel.setIcon(new ImageIcon(ImageLoader.getImage( + ImageLoader.RENAME_DIALOG_ICON))); + } } |