Example usage for javafx.stage FileChooser getInitialDirectory

List of usage examples for javafx.stage FileChooser getInitialDirectory

Introduction

In this page you can find the example usage for javafx.stage FileChooser getInitialDirectory.

Prototype

public final File getInitialDirectory() 

Source Link

Usage

From source file:hash.HashFilesController.java

@FXML
protected void locateFile(ActionEvent event) {
    // FileInputStream fis = null;
    FileChooser chooser = new FileChooser();
    chooser.getInitialDirectory();
    chooser.setTitle("Open File");
    List<File> list = chooser.showOpenMultipleDialog(new Stage());
    list.stream().forEach((list1) -> {
        generateChecksums(list1);//from ww  w.  j av  a2  s . c om
    });//        filePathTextField.setText(files.getAbsolutePath());
    //        generateMD5(files);
}