0
Good morning, I’m trying to make only one of the components of a Borderpane look transparent. In this case I used . opacity, however it was in Stage.
Code I created:
@Override
public void start(Stage primaryStage) throws Exception {
BorderPane root = FXMLLoader.load(getClass().getResource("App.fxml"));
Scene scene = new Scene(root);
primaryStage.setScene(scene);
primaryStage.setOpacity(0.5);
primaryStage.show();
}
I want only the part in blue to be Transparent and not the whole program, I have tried an opacity within the FXML in the part where I want to leave Transparent, but it was not the result obtained, because it just leaves the part in a clearer aspect.
This might help: https://stackoverflow.com/questions/22663681/javafx-effect-on-background
– Gustavo Fragoso
Dear thanks for the reply, it was the same that I found when watching a video on youtube of javafx inspirations.
– H C