We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
final FileChooser fileChooser = new FileChooser(); fileChooser.setTitle(new LangResourceManager().getLocaleString(LangResourceKeys.fileChooserCaption)); fileChooser.getExtensionFilters().add(new ExtensionFilter(new LangResourceManager().getLocaleString(LangResourceKeys.csv_file), "*.csv")); try { fileChooser.setInitialDirectory(new File(PropertyManager.getProperty(PropertyFields.LAST_OPEND).toString()).getParentFile()); } catch (final NullPointerException nullPointerException) { fileChooser.setInitialDirectory(new File(System.getProperty("user.home"))); } // if the chooser is "x'ed" the file is null final File selectedFile = fileChooser.showOpenDialog(MainController.this.getStage().getScene().getWindow()); if (selectedFile == null) { return; }
this is always the same so just put it in method in MC
The text was updated successfully, but these errors were encountered:
No branches or pull requests
this is always the same so just put it in method in MC
The text was updated successfully, but these errors were encountered: