From 13b15363f6726829495b6602aadbab2156624617 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 03 Sep 2009 21:53:41 +0000
Subject: [PATCH] Fix for issue 4062 (control-panel craps out when pointed (in error) to DS 6.3 (I assume any LDAP server))
---
opends/src/guitools/org/opends/guitools/controlpanel/ui/components/ActionButton.java | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/components/ActionButton.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/components/ActionButton.java
index c506884..01b86e4 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/components/ActionButton.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/components/ActionButton.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2008 Sun Microsystems, Inc.
+ * Copyright 2008-2009 Sun Microsystems, Inc.
*/
@@ -73,8 +73,16 @@
int n = b.getIconTextGap() + b.getIcon().getIconWidth() +
b.getBorder().getBorderInsets(b).left;
buttonBorder = new EmptyBorder(5, n, 5, 25);
+ Border highlightBorder =
+ UIManager.getBorder("List.focusCellHighlightBorder");
+ if (highlightBorder == null)
+ {
+ highlightBorder =
+ new javax.swing.plaf.BorderUIResource.LineBorderUIResource(
+ ColorAndFontConstants.pressedForeground, 1);
+ }
focusBorder = BorderFactory.createCompoundBorder(
- UIManager.getBorder("List.focusCellHighlightBorder"), buttonBorder);
+ highlightBorder, buttonBorder);
};
private static final Color defaultBackground =
--
Gitblit v1.10.0