I mean that when using a stage with stageStyle.UTILITY, I don\'t want to show the \"solid white background \" but a transparent background.
I need a stage doesn\'t s
Already OK! Also invoke dialogStage.initOwner(parentStage) http://docs.oracle.com/javafx/2/api/javafx/stage/Stage.html#initOwner%28javafx.stage.Window%29
It is not yet possible in javafx but javafx is swing compatible so you can use swing to make a swing equivalent to a transparent utility stage. See here for some examples. I hope that this helps.
something thus?
has an effect on the background
leads code
dialog.initModality(Modality.WINDOW_MODAL);
Look here How can I remove my javafx program from the taskbar
just add (to move it out of sight)
primaryStage.setX(Double.MAX_VALUE);
primaryStage.setY(Double.MAX_VALUE);
and replace
mainStage.initStyle(StageStyle.UNDECORATED);
with
mainStage.initStyle(StageStyle.TRANSPARENT);
final Stage stage = new Stage(StageStyle.TRANSPARENT);
Group rootGroup = new Group();
Scene scene = new Scene(rootGroup, 339, 319, Color.TRANSPARENT);
stage.setScene(scene);
stage.centerOnScreen();
stage.show();