From d441f750a60beeafecb7795c59ca73927cbc8ea7 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 16 Oct 2009 00:27:26 +0000
Subject: [PATCH] Change the interface of ProgressDialog to be able to specify separately the frame of the dialog and the component that must be used as a reference to display the dialog.

---
 opends/src/guitools/org/opends/guitools/controlpanel/ui/RestorePanel.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/RestorePanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/RestorePanel.java
index ff55574..151ec3f 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/RestorePanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/RestorePanel.java
@@ -171,9 +171,9 @@
     LinkedHashSet<Message> errors = new LinkedHashSet<Message>();
 //  Launch the task in another progress dialog.
     ProgressDialog dlg = new ProgressDialog(
+        Utilities.createFrame(),
         Utilities.getParentDialog(this),
-        INFO_CTRL_PANEL_VERIFY_BACKUP_TITLE.get(),
-        getInfo());
+        INFO_CTRL_PANEL_VERIFY_BACKUP_TITLE.get(), getInfo());
     RestoreTask newTask = new RestoreTask(getInfo(), dlg, true);
     for (Task task : getInfo().getTasks())
     {
@@ -301,7 +301,8 @@
     if (errors.isEmpty())
     {
       ProgressDialog progressDialog = new ProgressDialog(
-          Utilities.getParentDialog(this), getTitle(), getInfo());
+          Utilities.createFrame(), Utilities.getParentDialog(this), getTitle(),
+          getInfo());
       RestoreTask newTask = new RestoreTask(getInfo(), progressDialog, false);
       for (Task task : getInfo().getTasks())
       {

--
Gitblit v1.10.0