Transparent Stage should not minimized when clicked inside in Javafx
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 primaryStage.initStyle(StageStyle.TRANSPARENT); and scene.setFill(null); . I am able to resize the rectangular section but the problem is When I click inside the stage, It gets minimized as it is transparent. How to solve this issue ? I have seen this application screencast-o-matics and following the same. Please guide me on this. Edit:: Code: import java.awt.Toolkit; import javafx.application.Application; import