JavaFX 2.0 how to select aka FileChooser files

I am testing a new beta version of JavaFx 2.0, but cannot find a selection of files using a dialog box similar to JfileChooser.

Any ideas on how to do this?

thank

+3
source share
6 answers

There are currently no file select dialogs in the JavaFX 2.0 beta. The best option in the short term is to use TreeView and view your file system with this. Creating a TreeView file system browser is fairly simple.

+4
source

formchoser - , swing javafx 2.0.

 b.setLayoutY(50);
b.setOnMouseClicked(new EventHandler<MouseEvent>() {

        public void handle(MouseEvent event) {
            JFileChooser fileChooser = new JFileChooser();
            fileChooser.showDialog(javafxPanel, null);

        }
    });
+2

mehdi , JFileChooser FX 2.0. . , swing JavaFX 2.0: http://javafx-jira.kenai.com/browse/RT-12100

, , JFileChooser .

http://javafx-jira.kenai.com/browse/RT-13839 FX 2.0.

0

, JavaFX2 (, , ). , ? JavaFxDialog.

0

Since JavaFX 2.1, you can use the javafx.stage.DirectoryChooser class object .

0
source