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

Transparency Non-Functional with JavaFx on Linux

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      java -version: openjdk version "14.0.1" 2020-04-14
      javac -version: javac 14.0.1
      running ubuntu 20.04 as main, replicable on debian 10, not replicable on windows

      A DESCRIPTION OF THE PROBLEM :
      When utilizing JavaFx on Linux, transparency functionality is simply not there. Building and running on Windows yields a different result.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Plain JavaFx project using FXML with the following elements for transparency:
              Scene scene = new Scene(root, screenSize.width-100, 50*SCALING_MODIFIER, Color.TRANSPARENT);
              root.setStyle("-fx-background-color: transparent;");
              stage.initStyle(StageStyle.TRANSPARENT);
              stage.setOpacity(1.0);

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The background to be transparent.
      ACTUAL -
      The background is not transparent.

      FREQUENCY : always


        Attachments

          Activity

            People

            • Assignee:
              pnarayanaswa Praveen Narayanaswamy
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: