From 5021366d8c24a901e9c8c166aa4f509f13dbdb9d Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 08 Aug 2008 08:37:20 +0000
Subject: [PATCH] Fix a rendering problem with the button in the information messages of the QuickSetup by making the button non opaque.

---
 opends/src/quicksetup/org/opends/quicksetup/ui/CustomHTMLEditorKit.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/CustomHTMLEditorKit.java b/opends/src/quicksetup/org/opends/quicksetup/ui/CustomHTMLEditorKit.java
index c360adc..aef6e86 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/CustomHTMLEditorKit.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/CustomHTMLEditorKit.java
@@ -27,10 +27,12 @@
 
 package org.opends.quicksetup.ui;
 
+import java.awt.Component;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.util.HashSet;
 
+import javax.swing.JButton;
 import javax.swing.text.Element;
 import javax.swing.text.View;
 import javax.swing.text.ViewFactory;
@@ -126,6 +128,19 @@
         }
       }
     }
+
+    /**
+     * {@inheritDoc}
+     */
+    protected Component createComponent()
+    {
+      Component comp = super.createComponent();
+      if (comp instanceof JButton)
+      {
+        ((JButton)comp).setOpaque(false);
+      }
+      return comp;
+    }
   }
 
   private static long lastActionWhen = 0;

--
Gitblit v1.10.0