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

Linux: FileChooser's Title doesn't appear once primaryStage.show is called

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u66
    • javafx

      FULL PRODUCT VERSION :
      java version "1.8.0_66"
      Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Linux Xavier 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      In JDK-8096219, a user reported something similar for Mac. I'm not able to confirm if this bug appears on other Operating Systems.

      Once the primary stage is shown, a FileChooser's title does not appear when one calls its 'show...Dialog" method.

      Code below:
      public class FileChooserTest extends Application {

          @Override
          public void start(Stage primaryStage) {
              FileChooser chooser = new FileChooser();
              chooser.setTitle("Title of Dialog");

              // Chooser's title appears here
              chooser.showOpenDialog(primaryStage);
              chooser.showOpenMultipleDialog(primaryStage);
              chooser.showSaveDialog(primaryStage);

              // once primaryStage is shown, titles will no longer appear
              primaryStage.show();

              // Chooser's title does not appear in either of these
              chooser.showOpenDialog(primaryStage);
              chooser.showOpenMultipleDialog(primaryStage);
              chooser.showSaveDialog(primaryStage);
          }
      }

      ADDITIONAL REGRESSION INFORMATION:
      This worked in a prior release so I think it was broken sometime in the past few months. However, I don't know which version worked last.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      After the primary stage is shown, a dialog's window's title should appear whenever either of the three 'show...Dialog" methods are called.
      ACTUAL -
      The dialog window's title does not appear once the primary stage is shown.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No crashes or Errors

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class FileChooserTest extends Application {

          @Override
          public void start(Stage primaryStage) {
              FileChooser chooser = new FileChooser();
              chooser.setTitle("Title of Dialog");

              // Chooser's title appears here
              chooser.showOpenDialog(primaryStage);
              chooser.showOpenMultipleDialog(primaryStage);
              chooser.showSaveDialog(primaryStage);

              // once primaryStage is shown, titles will no longer appear
              primaryStage.show();

              // Chooser's title does not appear in either of these
              chooser.showOpenDialog(primaryStage);
              chooser.showOpenMultipleDialog(primaryStage);
              chooser.showSaveDialog(primaryStage);
          }
      }
      ---------- END SOURCE ----------

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: