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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7u40
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      Ubuntu

      Description

      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);
          }
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: