super ( JMFI18N.getResource("jmstudio.export.title") ); dlgExport = new ExportWizard ( this, strSourceUrl, null ); dlgExport.addWindowListener ( this ); dlgExport.setVisible ( true );
Export frameExport; String strSourceUrl; if ( args.length < 1 ) strSourceUrl = ""; else strSourceUrl = args[0]; frameExport = new Export ( strSourceUrl );
int i; int nCount; Object objWindow; Window window; window = event.getWindow (); if ( window == dlgExport ) { vectorWindows = dlgExport.getWindowsLeft (); nCount = vectorWindows.size (); for ( i = 0; i < nCount; i++ ) { objWindow = vectorWindows.elementAt ( i ); if ( !(objWindow instanceof Window) ) continue; if ( !((Window)objWindow).isShowing() ) continue; ((Window)objWindow).addWindowListener ( this ); } } else if ( vectorWindows.contains(window) ) { vectorWindows.removeElement ( window ); } if ( vectorWindows.isEmpty() ) System.exit ( 0 );