I am learning to create Screen Recording application in JavaFx. I want user to resize the rectangle to decide the screen capture area. I have made stage and scene Transparent by
Fill the rectangle as
rectangle.setFill(Color.web("blue", 0.1)); // or more transparent rectangle.setFill(Color.web("gray", 0.01));