Examples of FileChooser


Examples of com.sardak.antform.gui.FileChooser

  public void setDirectoryChooser(boolean directoryChooser) {
    this.directoryChooser = directoryChooser;
  }

  public void addToControlPanel(ControlPanel panel) {
    chooser = new FileChooser(columns, directoryChooser);
    panel.getStylesheetHandler().addFileChooser(chooser);
    initComponent(chooser, panel);
  }
View Full Code Here

Examples of flanagan.io.FileChooser

    // Read from file
    // Choose file from file chooser window
    public void readFromFile(){
        this.setDataOneDone = false;
        FileChooser fin = new FileChooser();
        this.dataFilename = fin.selectFile();
        this.read(fin);
    }
View Full Code Here

Examples of frontend.dialogs.FileChooser

  public Jif m_jif = null;
  public FrontendInterface[] m_panels = null;
 
  public Controller(Jif _jif) {
    m_jif = _jif;
    m_fileChooser = new FileChooser();
  }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.FileChooser

   *         canceled out of the FileChooser
   */

  private File selectFile(Component source) {
    // create a save as dialog
    final FileChooser fileChooser = new FileChooser();
    fileChooser.setDialogTitle(bundle.getString("export_message"));
    fileChooser.setApproveButtonText(bundle.getString("export_button"));
    fileChooser.setFileSelectionMode(FileChooser.FILES_ONLY);
    fileChooser.setFileFilter(new XMLFileFilter());
    if (source == null)
      return null;
    int returnVal = fileChooser.showOpenDialog(source);

    if (returnVal == FileChooser.APPROVE_OPTION) {
      File file = fileChooser.getSelectedFile();

      // check if the selected file ends with the extension
      // if not then add it
      String path = file.getAbsolutePath();
      // TODO add .xml to bundle?
View Full Code Here

Examples of gov.nasa.arc.mct.gui.FileChooser

   *         canceled out of the FileChooser
   */

  private File selectFile(Component source) {
    // create a save as dialog
    final FileChooser fileChooser = new FileChooser();
    fileChooser.setDialogTitle(bundle.getString("export_message"));
    fileChooser.setApproveButtonText(bundle.getString("export_button"));
    fileChooser.setFileSelectionMode(FileChooser.FILES_ONLY);
    fileChooser.setFileFilter(new XMLFileFilter());
    if (source == null)
      return null;
    int returnVal = fileChooser.showOpenDialog(source);

    if (returnVal == FileChooser.APPROVE_OPTION) {
      File file = fileChooser.getSelectedFile();

      // check if the selected file ends with the extension
      // if not then add it
      String path = file.getAbsolutePath();
      // TODO add .xml to bundle?
View Full Code Here

Examples of javafx.stage.FileChooser

    @FXML
    private BorderPane root;

    @FXML
    protected void handleMenuItemImportCsvAction(final ActionEvent event) {
        final FileChooser fileChooser = new FileChooser();
        final File importFile = fileChooser.showOpenDialog(root.getScene().getWindow());
        if (importFile == null) {
            return;
        }

        final ImportController importController = new ImportControllerImpl(PersistenceHelper.getInstance().createEntityManager());
View Full Code Here

Examples of javafx.stage.FileChooser

        Button openFile = new Button("打开文件");
        Button prePacket = new Button("样例");
        openFile.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent e) {
                FileChooser fileChooser = new FileChooser();
                File file = fileChooser.showOpenDialog(scene.getWindow());
                if (file != null) {
                    PcapHandler handler = new PcapHandler();
                    handler.addListener(new PacketHandlerListener(DisplayApplication.this));
                    handler.addFile(file);
                    handler.run();
View Full Code Here

Examples of javafx.stage.FileChooser

        this.futureTimer = null;
        subtitleTask = new SubtitleTask(this);
    }

    public File importSubtitles() {
        File file = new FileChooser().showOpenDialog(null);
        return file;
    }
View Full Code Here

Examples of javafx.stage.FileChooser

        inputOuterBorderSlider.disableProperty().bind(inputOuterBorderComboBox.selectedProperty().not());
       
        // ------------- SAVE AND COPY --------------------------------------------
        saveCSS.setOnAction(new EventHandler<ActionEvent>() {
            @Override public void handle(ActionEvent arg0) {
                FileChooser fileChooser = new FileChooser();
                File file = fileChooser.showSaveDialog(propertiesPanel.getScene().getWindow());
                if (file != null && !file.exists() && file.getParentFile().isDirectory()) {
                    FileWriter writer = null;
                    try {
                        writer = new FileWriter(file);
                        writer.write(createCSS(true));
View Full Code Here

Examples of javafx.stage.FileChooser

        File selected = wave.get(EditorWaves.EVENTS_FILE);

        if (selected == null) {

            final FileChooser fc = new FileChooser();
            fc.getExtensionFilters().add(new FileChooser.ExtensionFilter("log file", "*"));
            selected = fc.showOpenDialog(null);

        }

        if (selected != null) {
            // if nothing is selected
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.