From 2018a17d52e02359a5ee60e397831ffcde356139 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 06 Jul 2007 11:52:45 +0000
Subject: [PATCH] Move the progress icon inside the panels instead of putting it in the lower left side of the dialog.  Do not display the progress icon when the user clicks on "Launch Status Panel" at the end of the setup but update the icon and put it in busy mode.

---
 opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/FramePanel.java |   24 ++----------------------
 1 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/FramePanel.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/FramePanel.java
index 8332407..0aa26cd 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/FramePanel.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/FramePanel.java
@@ -35,8 +35,8 @@
 import java.awt.GridBagConstraints;
 import java.awt.GridBagLayout;
 
+import javax.swing.Box;
 import javax.swing.Icon;
-import javax.swing.JLabel;
 import javax.swing.JPanel;
 
 /**
@@ -63,9 +63,6 @@
   private int buttonsPanelVerticalInsets;
 
   private int stepsPanelHorizontalInsets;
-
-  private JLabel progressLabel;
-
   /**
    * The constructor of the FramePanel.
    * @param stepsPanel the steps panel that on the top-left side of the
@@ -110,17 +107,11 @@
     gbc.insets = UIFactory.getEmptyInsets();
     add(currentPanelContainer, gbc);
 
-    progressLabel = UIFactory.makeJLabel(UIFactory.IconType.NO_ICON, null,
-        UIFactory.TextStyle.READ_ONLY);
-    gbc.weighty = 0.0;
-    gbc.insets.left = UIFactory.getStepsPanelInsets().left;
-    gbc.insets.bottom = UIFactory.getButtonsPanelInsets().bottom;
-    add(progressLabel, gbc);
     gbc.gridwidth = GridBagConstraints.RELATIVE;
     gbc.anchor = GridBagConstraints.WEST;
     gbc.weightx = 0.0;
     gbc.weighty = 0.0;
-    add(progressLabel, gbc);
+    add(Box.createHorizontalGlue(), gbc);
 
     gbc.gridwidth = GridBagConstraints.REMAINDER;
     gbc.weightx = 1.0;
@@ -151,17 +142,6 @@
   }
 
   /**
-   * This method sets up an icon on the bottom left side of the dialog.
-   * Generally this method is called with an animated gif that is passed to
-   * display progress.
-   * @param iconType the icon type to be set.
-   */
-  public void setProgressIcon(UIFactory.IconType iconType)
-  {
-    progressLabel.setIcon(UIFactory.getImageIcon(iconType));
-  }
-
-  /**
    * {@inheritDoc}
    *
    * This method has been overwritten to be able to have a transparency effect

--
Gitblit v1.10.0