diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-04-17 08:32:01 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-04-17 08:32:01 +0000 |
commit | f4ae6198088f99c5047c69e7ba6318a033127638 (patch) | |
tree | d24b083e5cd38e3c344e2a602226799e1138b05e /src/net/java/sip/communicator/impl/gui/main/contactlist/RenameContactPanel.java | |
parent | dd5568cb3c05fd7489dffefbeccdae0a85562664 (diff) | |
download | jitsi-f4ae6198088f99c5047c69e7ba6318a033127638.zip jitsi-f4ae6198088f99c5047c69e7ba6318a033127638.tar.gz jitsi-f4ae6198088f99c5047c69e7ba6318a033127638.tar.bz2 |
Limits the use of Constants.FONT because it overrides the system font (when it's available) and is thus related to issue #423 (GUI default font shows squares instead of Chinese characters). It's now used only in the SC L&F (which is itself not used on Windows, Mac OS X and GNU/Linux+GNOME) and to badge the protocol images with numbers.
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 | 4 |
1 files changed, 3 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 0a33f6f..a7d65d7 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 @@ -69,7 +69,9 @@ public class RenameContactPanel this.dataPanel.add(textField, BorderLayout.CENTER); this.infoTitleLabel.setHorizontalAlignment(JLabel.CENTER); - this.infoTitleLabel.setFont(Constants.FONT.deriveFont(Font.BOLD, 18)); + + Font font = infoTitleLabel.getFont(); + infoTitleLabel.setFont(font.deriveFont(Font.BOLD, font.getSize2D() + 6)); this.labelsPanel.add(infoTitleLabel); this.labelsPanel.add(infoLabel); |