Package javafx.stage

Examples of javafx.stage.DirectoryChooser


    }
  }

  private void chooseFolder()
  {
    DirectoryChooser dc = new DirectoryChooser();
    dc.setTitle("Choose Folder");

    File dirFile = null;

    if (lastFolder == null)
    {
      dirFile = new File(System.getProperty("user.dir"));
    }
    else
    {
      dirFile = lastFolder;
    }

    dc.setInitialDirectory(dirFile);

    File result = dc.showDialog(stage);

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


        setEventHandler(new Consumer<ActionEvent>() {

            @Override
            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

            log.info("Saving: {}", detailsProto.getExtraDetails().getTitle());
            try {
                Project project;
                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

Related Classes of javafx.stage.DirectoryChooser

Copyright © 2018 www.massapicom. 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.