Info : Java 8x64 running on macOS Mojave
Problem : Cannot click through transparent background on javafx stage.
Code :
VBox root = new VBox();
AnchorPane background = new AnchorPane();
background.setPrefSize(400, 400);
background.setMinSize(400, 400);
background.setMaxSize(400, 400);
background.setClip(new
javafx.scene.shape.Rectangle(400,400));
root.getChildren().add(background);
Scene scene = new Scene(root);
Stage stage = new Stage();
scene.setFill(javafx.scene.paint.Color.TRANSPARENT);
stage.setScene(scene);
stage.setAlwaysOnTop(true); //remove on java7
stage.initStyle(StageStyle.TRANSPARENT);
stage.show();
This is just a test code to show you, you will not be able to click through this view which is not visible. The same code in java 7x86 on Windows will work (you will be able to click through).