FileChooser in JavaFX

My abbreviated example of a FileChooser. See This illustrates optional use of command-line arguments.

JavaFX FileChooser Tutorial

A file chooser can be used to invoke an open dialog window for selecting either a single file or multiple files, and to enable a file save dialog window. To display a file chooser, you typically use the FileChooser class. Example 26-1 provides the simplest way to enable a file chooser in your application.
FileChooser fileChooser = new FileChooser();
fileChooser.setTitle("Open Resource File");


In this next example we change the directory in which FileChooser opens. See

Finally we show how to filter the file extensions to be used. See

Reference : JavaFX FileChooser

Maintained by John Loomis, last updated 7 February 2018