]> source.dussan.org Git - aspectj.git/commitdiff
Added safeguard for missing 1.3 setLocationRelativeTo method.
authormkersten <mkersten>
Wed, 9 Jul 2003 07:48:09 +0000 (07:48 +0000)
committermkersten <mkersten>
Wed, 9 Jul 2003 07:48:09 +0000 (07:48 +0000)
ajde/src/org/aspectj/ajde/ui/swing/DefaultBuildProgressMonitor.java

index 5caa9cbecd1fbf8004400f316bdbd3440ef6f21c..ad70c4d33b6e3bfd0035d71ff567b6263f5ee62d 100644 (file)
@@ -19,7 +19,7 @@ import java.awt.Frame;
 import javax.swing.JDialog;
 
 import org.aspectj.ajde.BuildProgressMonitor;
-
+  
 /**
  * This dialog box is open while ajc is compiling the system and displays
  * a corresponding progress bar.
@@ -36,7 +36,11 @@ public class DefaultBuildProgressMonitor extends Thread implements BuildProgress
         progressDialog = new BuildProgressPanel();
         dialog.setContentPane(progressDialog);
         dialog.setSize(550, 120);
-        dialog.setLocationRelativeTo(parent);  
+        try {
+               dialog.setLocationRelativeTo(parent);   
+               } catch (NoSuchMethodError nsme) {
+                       // running on 1.3
+               }
        }
 
     /**