* Do not launch Java process in a constructor
Sylvestre Ledru [Fri, 26 Jun 2009 13:36:51 +0000 (15:36 +0200)]
scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/filechooser/ExportOptionWindow.java
scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/filechooser/SwingScilabExportFileChooser.java

index 92bcd97..5f38c19 100644 (file)
@@ -50,9 +50,6 @@ public class ExportOptionWindow extends JFrame implements ActionListener {
      */
        public ExportOptionWindow(ExportData exportData) {
                this.exportData = exportData;           
-               displayOptionWindow();
-               landscapePortraitOption();
-               
        }
 
        /**
index 375ef3b..b3af751 100644 (file)
@@ -260,11 +260,10 @@ public class SwingScilabExportFileChooser extends SwingScilabFileChooser {
         * @param userExtension extension caught by the user
         */
        public void vectorialExport(String userExtension) {
-               ExportData exportData;
-               ExportOptionWindow exportOptionWindow;
-               
-               exportData = new ExportData(figureId, exportName, userExtension, null);
-        exportOptionWindow = new ExportOptionWindow(exportData);               
+               ExportData exportData = new ExportData(figureId, this.exportName, userExtension, null);
+               ExportOptionWindow exportOptionWindow = new ExportOptionWindow(exportData);             
+        exportOptionWindow.displayOptionWindow();
+               exportOptionWindow.landscapePortraitOption();
        }
 
 }