aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2010-12-21 10:25:09 +0000
committerYana Stamcheva <yana@jitsi.org>2010-12-21 10:25:09 +0000
commiteb143572d3f1e2c8d6fc3a09634678f3e8e4b13e (patch)
treed2212acd2e4669781ac42e5d6b8d4aa85df887bd
parent2938c560b8d9c0369c4fc244adf11cb8f0e423e7 (diff)
downloadjitsi-eb143572d3f1e2c8d6fc3a09634678f3e8e4b13e.zip
jitsi-eb143572d3f1e2c8d6fc3a09634678f3e8e4b13e.tar.gz
jitsi-eb143572d3f1e2c8d6fc3a09634678f3e8e4b13e.tar.bz2
Remove unused border.
-rwxr-xr-xsrc/net/java/sip/communicator/impl/gui/main/chat/ChatSendPanel.java6
-rw-r--r--src/net/java/sip/communicator/impl/gui/main/chat/StatusPanel.java7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/ChatSendPanel.java b/src/net/java/sip/communicator/impl/gui/main/chat/ChatSendPanel.java
index c872791..d1910ad 100755
--- a/src/net/java/sip/communicator/impl/gui/main/chat/ChatSendPanel.java
+++ b/src/net/java/sip/communicator/impl/gui/main/chat/ChatSendPanel.java
@@ -12,6 +12,7 @@ import java.awt.event.*;
import javax.swing.*;
import net.java.sip.communicator.impl.gui.*;
+import net.java.sip.communicator.util.*;
import net.java.sip.communicator.util.swing.*;
/**
@@ -43,7 +44,10 @@ public class ChatSendPanel
{
super(new BorderLayout(5, 0));
- this.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
+ // MacOS would add a default border, so we just add a border for
+ // other operating systems.
+ if (!OSUtils.IS_MAC)
+ this.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
sendButton = new JButton(
GuiActivator.getResources().getI18NString("service.gui.SEND"));
diff --git a/src/net/java/sip/communicator/impl/gui/main/chat/StatusPanel.java b/src/net/java/sip/communicator/impl/gui/main/chat/StatusPanel.java
index 9ffd7db..150b38d 100644
--- a/src/net/java/sip/communicator/impl/gui/main/chat/StatusPanel.java
+++ b/src/net/java/sip/communicator/impl/gui/main/chat/StatusPanel.java
@@ -10,7 +10,6 @@ import java.awt.*;
import javax.swing.*;
-import net.java.sip.communicator.impl.gui.lookandfeel.*;
import net.java.sip.communicator.util.*;
import net.java.sip.communicator.util.swing.*;
@@ -28,11 +27,9 @@ public class StatusPanel extends TransparentPanel
{
super(new BorderLayout());
- this.setPreferredSize(new Dimension(100, getFontHeight() + 10));
+ this.setPreferredSize(new Dimension(100, getFontHeight() + 5));
- this.setBorder(BorderFactory.createCompoundBorder(
- SIPCommBorders.getRoundBorder(),
- BorderFactory.createEmptyBorder(3, 3, 3, 3)));
+ this.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
this.add(statusLabel, BorderLayout.WEST);
}