mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
08.43.2007 eb93a7bf09123d5fe7a8509e4a1421101163b670
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;
/**
@@ -64,6 +64,8 @@
  private int stepsPanelHorizontalInsets;
  private JLabel progressLabel;
  /**
   * The constructor of the FramePanel.
   * @param stepsPanel the steps panel that on the top-left side of the
@@ -108,10 +110,17 @@
    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(Box.createHorizontalGlue(), gbc);
    add(progressLabel, gbc);
    gbc.gridwidth = GridBagConstraints.REMAINDER;
    gbc.weightx = 1.0;
@@ -142,6 +151,19 @@
  }
  /**
   * 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)
  {
    // For the moment we are lacking of a decent progress dialog to be
    // displayed.
    //progressLabel.setIcon(UIFactory.getImageIcon(iconType));
  }
  /**
   * {@inheritDoc}
   *
   * This method has been overwritten to be able to have a transparency effect