FileChooser - rsanchez-wsu/RaiderPlanner GitHub Wiki
FileChooser
The FileChooser is a class in javaFX that implements a GUI file selector that is simpler for users. In the GUI, you can visually see and click on files. Or, you could type in the search bar to either create or find a file. The look and feel of the FileChooser is based on the platform UI components which is independent of JavaFX. All methods can be found at docs.oracle.com
FileChooser used in RaiderPlanner
The FileChooser class is used primarily in UIManager.java. Methods used in UIManager include: setTitle(String value), getExtenshionFilters() and showSaveDialog(Window ownerWindow).
setTitle(String value) sets the value of the property title. Meaning at the top of the window it will display what ever string is put in the parameter. This could be used for letting the user know why you are selecting a file.
getExtenshionFilters() take no parameters. It gets the extenshion filters used in the displayed file dialog. This can filter out files you do not want the user to select.
showSaveDialog(Window ownerWindow) shows a new file save dialog. This is used to save the name of the saved file into a file variable.
More methods can be found at docs.oracle.com linked below.
Resource Links
FileChooser methods and documentation https://docs.oracle.com/javase/8/javafx/api/javafx/stage/FileChooser.html
Implementation for FileChooser https://examples.javacodegeeks.com/desktop-java/javafx/javafx-filechooser-example/