Example usage for javafx.stage Stage toBack

List of usage examples for javafx.stage Stage toBack

Introduction

In this page you can find the example usage for javafx.stage Stage toBack.

Prototype

public void toBack() 

Source Link

Document

Send the Window to the background.

Usage

From source file:Main.java

@Override
public void start(Stage stage) {
    Text text = new Text("!");
    text.setFont(new Font(40));
    VBox box = new VBox();
    box.getChildren().add(text);//from w ww . ja  va  2s  .  c o m
    final Scene scene = new Scene(box, 300, 250);
    scene.setFill(null);
    stage.setScene(scene);
    stage.show();
    stage.toBack();
}