5 Replies Latest reply on May 12, 2012 1:35 PM by john16384

    Problems with ExtensionFilter

      I have the following code
      FileChooser chooser = new FileChooser();
      FileChooser.ExtensionFilter ext = new FileChooser.ExtensionFilter("Text document", "*.txt");
      File file = chooser.showSaveDialog(stage);
      So, after I've clicked on the save button, newly created file isn't in the .txt format, but "Type of file field" says - "File". How to fix this?