From 2a60a162e5b570b4847b83fd51cf3e2a8cd11a0b Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 05 Jan 2009 22:38:09 +0000
Subject: [PATCH] Fix for issue 3685 (Swing repainting problem in control panel) The fix consists on handling in a particular mode the border of some components when the Metal look and feel is used.  In this look and feel the scroll pane border can only be used with JScrollPane objects.

---
 opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java
index 4cc9613..11d70ad 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/StatusGenericPanel.java
@@ -64,6 +64,7 @@
 import javax.swing.JMenuBar;
 import javax.swing.JPanel;
 import javax.swing.SwingUtilities;
+import javax.swing.border.Border;
 
 import org.opends.admin.ads.util.ConnectionUtils;
 import org.opends.guitools.controlpanel.browser.BrowserController;
@@ -1940,4 +1941,15 @@
     }
     return hasObjectClass;
   }
+
+  /**
+   * Returns the border to be used in the right panel of the dialog with a tree
+   * on the left (for instance the schema browser, entry browser and index
+   * browser).
+   * @return the border to be used in the right panel.
+   */
+  protected Border getRightPanelBorder()
+  {
+    return ColorAndFontConstants.textAreaBorder;
+  }
 }

--
Gitblit v1.10.0