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

JavaFX fails to create Stage in Windows 10 Build 1903 with touch screen

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8u211, openjfx11
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10 (1903) May 2019 Update

      A DESCRIPTION OF THE PROBLEM :
      Given a certain combination of Stage initialization parameters, JavaFX 8 fails to create Stage in Windows 10 (1903). Entire Windows may hang and JVM must be killed from TaskManager in Windows

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the test case (small Application)

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The Stage is shown.
      ACTUAL -
      Windows hangs

      ---------- BEGIN SOURCE ----------
      package com.community.test.win10_1903;

      import java.io.IOException;

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.layout.VBox;
      import javafx.stage.Stage;
      import javafx.stage.StageStyle;

      public class Win10_1903Test extends Application {

      public Win10_1903Test() {

      }

      @Override
      public void start(Stage primaryStage) throws IOException {

      VBox vbox = new VBox();
      vbox.setPrefHeight(200);
      vbox.setPrefWidth(300);
      Scene scene = new Scene(vbox);
      primaryStage.setTitle("Win10_1903Test");
      primaryStage.setScene(scene);
      primaryStage.setFullScreen(true);
      /* THIS IS THE OFFENDING LINE */
      primaryStage.initStyle(StageStyle.UNDECORATED);

      primaryStage.show();

      }

      public static void main(String[] args) {

      launch(args);
      }

      }

      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: