package test; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.stage.Stage; import javafx.stage.StageStyle; public class testTrans extends Application { public void start(Stage stage) { stage = new Stage(StageStyle.TRANSPARENT ); //stage.setFullScreen(true); // create scene Group root = new Group(); Scene scene = new Scene(root,800,600); stage.setScene(scene); scene.setRoot(root); Button btn = new Button("test"); root.getChildren().add(btn); btn.setStyle("-fx-background-color: red;"); stage.setVisible(true); } public static void main(String[] args) { Application.launch(args); } }