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

jvergara
05.15.2009 4d80ece5e80355439c020c42dd93946f449e43b0
Force repainting of the progress dialog when the user clicks on 'Details'.
1 files modified
24 ■■■■ changed files
opends/src/guitools/org/opends/guitools/controlpanel/ui/ProgressDialog.java 24 ●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/ProgressDialog.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Copyright 2008-2009 Sun Microsystems, Inc.
 */
package org.opends.guitools.controlpanel.ui;
@@ -474,7 +474,7 @@
      details.setSelected(showDetails);
      if (showDetails)
      {
        Window dialog = Utilities.getParentDialog(this);
        final Window dialog = Utilities.getParentDialog(this);
        if (dialog != null)
        {
          lastCollapsedHeight = dialog.getSize().height;
@@ -488,11 +488,20 @@
            dialog.setSize(new Dimension(dialog.getSize().width,
                lastExpandedHeight));
          }
          SwingUtilities.invokeLater(new Runnable()
          {
            public void run()
            {
              invalidate();
              dialog.invalidate();
              dialog.repaint();
            }
          });
        }
      }
      else
      {
        Window dialog = Utilities.getParentDialog(this);
        final Window dialog = Utilities.getParentDialog(this);
        if (dialog != null)
        {
          lastExpandedHeight = dialog.getSize().height;
@@ -504,6 +513,15 @@
          {
            dialog.setSize(new Dimension(dialog.getSize().width,
                lastCollapsedHeight));
            SwingUtilities.invokeLater(new Runnable()
            {
              public void run()
              {
                invalidate();
                dialog.invalidate();
                dialog.repaint();
              }
            });
          }
        }
      }