Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8125194

Gtk: FileChooser save dialog does not ask for confirmation to overwrite an existing file on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8
    • 7u40
    • javafx
    • Ubuntu

      In the dialog produced by FileChooser.showSaveDialog, if you select an existing file there is a confirmation dialog on Windows and on Mac, but not on Linux (tried Ubuntu 11 & 12).

      package javafxapplication;

      import java.io.File;
      import javafx.application.Application;
      import javafx.stage.FileChooser;
      import javafx.stage.Stage;

      public class JavaFXApplication extends Application {
          
          @Override
          public void start(Stage primaryStage) {
              FileChooser fileChooser = new FileChooser();
              File ignored = fileChooser.showSaveDialog(primaryStage);
          }

          public static void main(String[] args) {
              launch(args);
          }
      }

            azvegint Alexander Zvegintsev
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: