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

Empty window observed on startup on Mac with full screen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      When I run this on my mac, I can see an empty window for a moment before it goes full screen. When I click on the orange rectangle to make it non-full screen, there is some brief flickering on the app window.


      public class NonExitableFullScreenApp extends Application {
          @Override public void start(Stage stage) throws Exception {
              Rectangle r = new Rectangle(0, 0, 250, 250);
              r.setFill(Color.ORANGE);
              r.setStroke(Color.WHITE);
              r.setStrokeWidth(5);
              r.setArcHeight(20);
              r.setArcWidth(20);

              Scene scene = new Scene(new StackPane(r), 640, 480, Color.BLACK);
              stage.setScene(scene);
              stage.setFullScreenExitKeyCombination(KeyCombination.NO_MATCH);
              stage.setFullScreen(true);
              r.setOnMouseClicked(e -> stage.setFullScreen(false));
              stage.show();
          }

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rbair Richard Bair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Imported: