Remove unused border.

cusax-fix
Yana Stamcheva 15 years ago
parent 2938c560b8
commit eb143572d3

@ -12,6 +12,7 @@
import javax.swing.*; import javax.swing.*;
import net.java.sip.communicator.impl.gui.*; import net.java.sip.communicator.impl.gui.*;
import net.java.sip.communicator.util.*;
import net.java.sip.communicator.util.swing.*; import net.java.sip.communicator.util.swing.*;
/** /**
@ -43,7 +44,10 @@ public ChatSendPanel(ChatPanel chatPanel)
{ {
super(new BorderLayout(5, 0)); 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( sendButton = new JButton(
GuiActivator.getResources().getI18NString("service.gui.SEND")); GuiActivator.getResources().getI18NString("service.gui.SEND"));

@ -10,7 +10,6 @@
import javax.swing.*; import javax.swing.*;
import net.java.sip.communicator.impl.gui.lookandfeel.*;
import net.java.sip.communicator.util.*; import net.java.sip.communicator.util.*;
import net.java.sip.communicator.util.swing.*; import net.java.sip.communicator.util.swing.*;
@ -28,11 +27,9 @@ public StatusPanel()
{ {
super(new BorderLayout()); super(new BorderLayout());
this.setPreferredSize(new Dimension(100, getFontHeight() + 10)); this.setPreferredSize(new Dimension(100, getFontHeight() + 5));
this.setBorder(BorderFactory.createCompoundBorder( this.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));
SIPCommBorders.getRoundBorder(),
BorderFactory.createEmptyBorder(3, 3, 3, 3)));
this.add(statusLabel, BorderLayout.WEST); this.add(statusLabel, BorderLayout.WEST);
} }

Loading…
Cancel
Save