JAVAFx Tutorial 18- SceneBuilder File Chooser

preview_player
Показать описание

In this video single file chooser and multiple file chooser has been discussed.
Рекомендации по теме
Комментарии
Автор

Awesome...your delivery is just great....

kelvinotieno
Автор

In case anyone was having a null pointer exception when doing the multi-file chooser then canceling without selecting a file, this was the code i wrote to solve it:

public void searchDirectory(ActionEvent event) {

FileChooser fC = new FileChooser();

FileChooser.ExtensionFilter("mediaFile", "*.mp4"));
List<File> f = files in f object list of type: File
if (f != null){
for (File file : f) {

}
}
}

Hope this helps anyone who had the same issue as me.

cresentj
Автор

Большое спасибо, всё работает. Вы просто чудо)
Thank you very much, everything is working. You are just a miracle)

aquinology
Автор

Nice explanation - just what I was looking for..

davegraham
Автор

thank you mate, your explications are perfect !

remigestin
Автор

thanks for your instructions, but i can not setText with getAbsolutePath(), It made the RuntimeException and InnovationTargetException error. Hope u can give me some advice, thank you so much!

hungtrinh
visit shbcf.ru