Adam Bien's Weblog
Transparent Windows (Stage) With Java FX 2
To make the main Java FX window completely transparent, you only have to set the StageStyle.TRANSPARENT and the Scene#setFill(null):
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
public class TransparentStage extends Application {
@Override
public void start(Stage stage) {
stage.initStyle(StageStyle.TRANSPARENT);
Text text = new Text("Transparent!");
text.setFont(new Font(40));
VBox box = new VBox();
box.getChildren().add(text);
final Scene scene = new Scene(box,300, 250);
scene.setFill(null);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
Checkout the TransparentStage sample (source code).
Posted at 02:31PM Apr 18, 2012 by Adam Bien in RIA / Java FX | Comments[1] | Views/Hits: 7499
NEW Workshop: "JPA, NoSQL, Caching, Grids and Distributed Caches with Java EE 7", May 7th, 2013, Airport Munich
A book about rethinking Java EE Patterns
Tweet Follow @AdamBien

this post was very useful.
I didnt find anything in Oracles Doc about how to make a transparent stage..
thanks you!
Posted by Americo Hernandez on December 19, 2012 at 07:41 PM CET #