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
Now it is available in beta version 36 http://download.oracle.com/javafx/2.0/api/javafx/stage/FileChooser.html
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.
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); } });
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.
, JavaFX2 (, , ). , ? JavaFxDialog.
Since JavaFX 2.1, you can use the javafx.stage.DirectoryChooser class object .