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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • jfx11, 8u211
    • javafx
    • x86_64
    • windows_10

      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


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

              Created:
              Updated:
              Resolved: