clear window javafx code example
Example 1: javafx transparent background
scene.setFill(Color.TRANSPARENT);
stage.initStyle(StageStyle.TRANSPARENT);
Example 2: javafx stage transparent background
stage.initStyle(StageStyle.TRANSPARENT);
scene.setFill(Color.TRANSPARENT);
stage.initStyle(StageStyle.TRANSPARENT);
stage.initStyle(StageStyle.TRANSPARENT);