title: how to save file with savedilogue javafx
body: <p>I have created excel file and I want that file to show as "File Name" box in JavaFx file chooser. So I can save that file wherever I want with the use of SaveDialogueBox.</p>
  
  <p>Code : </p>
  
  <pre><code>WriteExcelFile test = new WriteExcelFile();    
  
  File exlFile = new File("c:/temp/"+tabName+".xls");
  WorkbookSettings wbSettings = new WorkbookSettings();
  
  wbSettings.setLocale(new Locale("en", "EN"));
  
  WritableWorkbook workbook = Workbook.createWorkbook(exlFile, wbSettings);
  workbook.createSheet("Report", 0);
  WritableSheet excelSheet = workbook.getSheet(0);
  //createLabel(excelSheet);
  
  Label label;
  // Write a few headers
  label = new Label(0, 0,"ID");
  excelSheet.addCell(label);
  label = new Label(1, 0,"BIC");
  excelSheet.addCell(label);
  
  label = new Label(0, 1,"Hi 0");
  excelSheet.addCell(label);
  label = new Label(1, 1,"Hi 1");
  excelSheet.addCell(label);
  
  workbook.write();
  workbook.close();
  
  Stage stage = (Stage) delBtn.getScene().getWindow();
  FileChooser fileChooser = new FileChooser();
  fileChooser.setTitle("Open Resource File");
  fileChooser.getExtensionFilters().addAll(
          new ExtensionFilter("Microsoft Workbook", "*.xls"));
  
  File selectedFile = fileChooser.showSaveDialog(stage);
  if (selectedFile != null) {
      //What to write here
  }
  </code></pre>