Package javafx.stage

Examples of javafx.stage.DirectoryChooser.showDialog()


      dirFile = lastFolder;
    }

    dc.setInitialDirectory(dirFile);

    File result = dc.showDialog(stage);

    if (result != null)
    {
      try
      {
View Full Code Here


            public void accept(ActionEvent t) {
                //choose location/name
                DirectoryChooser fileChooser = new DirectoryChooser();
                fileChooser.setTitle("Save snapshot to");
                fileChooser.setInitialDirectory(new File(Case.getCurrentCase().getCaseDirectory() + File.separator + "Reports"));
                File outFolder = fileChooser.showDialog(null);
                if (outFolder == null) {
                    return;
                }
                outFolder.mkdir();
                String name = outFolder.getName();
View Full Code Here

                if (!detailsProto.hasPaymentUrl()) {
                    // Request directory first then save, so the animations are right.
                    DirectoryChooser chooser = new DirectoryChooser();
                    chooser.setTitle("Select a directory to store the project and pledges");
                    platformFiddleChooser(chooser);
                    File dir = chooser.showDialog(Main.instance.mainStage);
                    if (dir == null)
                        return;
                    final Path dirPath = dir.toPath();
                    project = model.getProject();
                    // Make sure we don't try and run too many animations simultaneously.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.