aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/ZrtpConfigurePanel.java4
-rw-r--r--src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigForm.java10
-rw-r--r--src/net/java/sip/communicator/plugin/provisioning/ProvisioningForm.java30
3 files changed, 32 insertions, 12 deletions
diff --git a/src/net/java/sip/communicator/impl/neomedia/ZrtpConfigurePanel.java b/src/net/java/sip/communicator/impl/neomedia/ZrtpConfigurePanel.java
index c30777d..6413a99 100644
--- a/src/net/java/sip/communicator/impl/neomedia/ZrtpConfigurePanel.java
+++ b/src/net/java/sip/communicator/impl/neomedia/ZrtpConfigurePanel.java
@@ -88,11 +88,11 @@ public class ZrtpConfigurePanel
JPanel checkBar = new TransparentPanel(new GridLayout(1,2));
final JCheckBox trustedMitM
- = new JCheckBox(
+ = new SIPCommCheckBox(
resources.getI18NString("impl.media.security.zrtp.TRUSTED"),
trusted);
final JCheckBox sasSignature
- = new JCheckBox(
+ = new SIPCommCheckBox(
resources.getI18NString(
"impl.media.security.zrtp.SASSIGNATURE"),
sasSign);
diff --git a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigForm.java b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigForm.java
index 4301f95..342c55f 100644
--- a/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigForm.java
+++ b/src/net/java/sip/communicator/impl/packetlogging/PacketLoggingConfigForm.java
@@ -87,27 +87,27 @@ public class PacketLoggingConfigForm
ResourceManagementService resources =
PacketLoggingActivator.getResourceService();
- enableCheckBox = new JCheckBox(
+ enableCheckBox = new SIPCommCheckBox(
resources.getI18NString("impl.packetlogging.ENABLE_DISABLE"));
enableCheckBox.addActionListener(this);
- sipProtocolCheckBox = new JCheckBox(
+ sipProtocolCheckBox = new SIPCommCheckBox(
resources.getI18NString("plugin.sipaccregwizz.PROTOCOL_NAME"));
sipProtocolCheckBox.addActionListener(this);
- jabberProtocolCheckBox = new JCheckBox(
+ jabberProtocolCheckBox = new SIPCommCheckBox(
resources.getI18NString("plugin.jabberaccregwizz.PROTOCOL_NAME"));
jabberProtocolCheckBox.addActionListener(this);
String rtpDescription = resources.getI18NString(
"impl.packetlogging.PACKET_LOGGING_RTP_DESCRIPTION");
- rtpProtocolCheckBox = new JCheckBox(
+ rtpProtocolCheckBox = new SIPCommCheckBox(
resources.getI18NString("impl.packetlogging.PACKET_LOGGING_RTP")
+ " " + rtpDescription);
rtpProtocolCheckBox.addActionListener(this);
rtpProtocolCheckBox.setToolTipText(rtpDescription);
- ice4jProtocolCheckBox = new JCheckBox(
+ ice4jProtocolCheckBox = new SIPCommCheckBox(
resources.getI18NString("impl.packetlogging.PACKET_LOGGING_ICE4J"));
ice4jProtocolCheckBox.addActionListener(this);
diff --git a/src/net/java/sip/communicator/plugin/provisioning/ProvisioningForm.java b/src/net/java/sip/communicator/plugin/provisioning/ProvisioningForm.java
index 0d67609..39f429f 100644
--- a/src/net/java/sip/communicator/plugin/provisioning/ProvisioningForm.java
+++ b/src/net/java/sip/communicator/plugin/provisioning/ProvisioningForm.java
@@ -13,11 +13,13 @@ import javax.swing.*;
import javax.swing.event.*;
import net.java.sip.communicator.service.resources.*;
+import net.java.sip.communicator.util.*;
import net.java.sip.communicator.util.swing.*;
/**
*
* @author Yana Stamcheva
+ * @author Lyubomir Marinov
*/
public class ProvisioningForm
extends TransparentPanel
@@ -67,19 +69,19 @@ public class ProvisioningForm
ResourceManagementService resources
= ProvisioningActivator.getResourceService();
- enableCheckBox = new JCheckBox(
+ enableCheckBox = new SIPCommCheckBox(
resources.getI18NString("plugin.provisioning.ENABLE_DISABLE"));
- dhcpButton = new JRadioButton(
+ dhcpButton = createRadioButton(
resources.getI18NString("plugin.provisioning.DHCP"));
- dnsButton = new JRadioButton(
+ dnsButton = createRadioButton(
resources.getI18NString("plugin.provisioning.DNS"));
- bonjourButton = new JRadioButton(
+ bonjourButton = createRadioButton(
resources.getI18NString("plugin.provisioning.BONJOUR"));
- manualButton = new JRadioButton(
+ manualButton = createRadioButton(
resources.getI18NString("plugin.provisioning.MANUAL"));
uriField = new SIPCommTextField(
@@ -145,6 +147,24 @@ public class ProvisioningForm
}
/**
+ * Creates a new <tt>JRadioButton</tt> instance with the
+ * SIP Communicator-specific look and feel applied.
+ *
+ * @param text the text to be displayed in the <tt>JRadioButton</tt>
+ * @return a new <tt>JRadioButton</tt> instance with the
+ * SIP Communicator-specific look and feel applied
+ */
+ private JRadioButton createRadioButton(String text)
+ {
+ JRadioButton radioButton = new JRadioButton(text);
+
+ /* We want it transparent on Windows as well. */
+ if (OSUtils.IS_WINDOWS)
+ radioButton.setContentAreaFilled(false);
+ return radioButton;
+ }
+
+ /**
* Initializes all contained components.
*/
private void initButtonStates()