From 0e30a4a5c7a692c06ef62a764e0cdff3b73ea552 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 18 Oct 2007 12:45:36 +0000
Subject: [PATCH] Fix a bug in the progress panel that did not allow to display the initial message.  This produced a graphical glitch when the next summary message was displayed (the whole panel was abruptly moved downwards).

---
 opends/src/quicksetup/org/opends/quicksetup/ui/ProgressPanel.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/ProgressPanel.java b/opends/src/quicksetup/org/opends/quicksetup/ui/ProgressPanel.java
index c51aaa4..c004c16 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/ProgressPanel.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/ProgressPanel.java
@@ -92,7 +92,7 @@
     gbc.fill = GridBagConstraints.HORIZONTAL;
 
     progressBarLabel = UIFactory.makeHtmlPane(
-            INFO_PROGRESSBAR_INITIAL_LABEL.get(),
+            null,
             UIFactory.PROGRESS_FONT);
     progressBarLabel.setOpaque(false);
     progressBarLabel.setEditable(false);
@@ -110,6 +110,10 @@
       }
     });
     progressBarLabel.setEditorKit(htmlEditor);
+    String summaryText = UIFactory.applyFontToHtml(
+        String.valueOf(INFO_PROGRESSBAR_INITIAL_LABEL.get()),
+        UIFactory.PROGRESS_FONT);
+    progressBarLabel.setText(summaryText);
     progressBarLabel.addHyperlinkListener(this);
     panel.add(progressBarLabel, gbc);
 
@@ -204,6 +208,7 @@
         summaryText = "<form>"+summaryText+"</form>";
       }
     }
+
     progressBarLabel.setText(summaryText);
 
     Integer v = descriptor.getProgressBarRatio();

--
Gitblit v1.10.0