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/VLVIndexPanel.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/VLVIndexPanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/VLVIndexPanel.java
index 0a49715..a03deab 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/VLVIndexPanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/VLVIndexPanel.java
@@ -398,6 +398,7 @@
   {
     ArrayList<Message> errors = new ArrayList<Message>();
     ProgressDialog dlg = new ProgressDialog(
+        Utilities.createFrame(),
         Utilities.getParentDialog(this),
         INFO_CTRL_PANEL_DELETE_VLV_INDEX_TITLE.get(), getInfo());
     ArrayList<AbstractIndexDescriptor> indexesToDelete =
@@ -448,7 +449,8 @@
     if (errors.isEmpty())
     {
       ProgressDialog dlg = new ProgressDialog(
-          Utilities.getParentDialog(this),
+          Utilities.getFrame(this),
+          Utilities.getFrame(this),
           INFO_CTRL_PANEL_MODIFYING_INDEX_TITLE.get(), getInfo());
       dlg.setModal(modal);
       newModifyTask = new ModifyVLVIndexTask(getInfo(), dlg);

--
Gitblit v1.10.0