use JavaFX file chooser instead of Swing file chooser