public void fileChooserOutput(){
         String outputFile = new String();
         
         JFileChooser chooser = new JFileChooser("");
         chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
         chooser.setFileFilter(new FileNameExtensionFilter("XML files", "xml"));
         chooser.enableInputMethods(rootPaneCheckingEnabled);
                 
         int returnVal = chooser.showOpenDialog((java.awt.Component) null);
         if (returnVal == JFileChooser.APPROVE_OPTION ){
            outFile = chooser.getSelectedFile();
            if(!outFile.getName().toLowerCase().endsWith(".xml")){
               outputFile = outFile.getPath()+".xml";
               jTextField2.setText(outputFile);
            }
            if (verifyExtension(outFile.getPath())){
                jTextField2.setText(outFile.getPath());
                outputFile = outFile.getPath();
            }
        }
        ro.hierarchy.UI.execWrapper.Wrapper.setOutputFile(outputFile);
        generated.Test4.giveName(outputFile);
    }