Stage_To_Scene1
  • Stage :holds a scene
  • Scene stretches across the stage frame.
  • Scene (UI elements) is organized as a hierarchical tree, holding visual elements.
  • Each item in scene is a Node. 
In the following code

code :

package javafxtemplate1;
//Recursion_BindContent_ListView1
//textProperty().addListener Listview Label
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.stage.StageStyle;


/**
*
* @author Manas9
*/
public class JavaFXTemplate1 extends Application {

@Override
public void start(Stage primaryStage) throws Exception {
//
Label label1 = new Label("new Label");
Group root = new Group(label1);
//Scene scene = new Scene(root,200,250);
Scene scene = new Scene(root,100,150, Color.BEIGE);
primaryStage.setTitle("JavaFx:: primaryStage");
primaryStage.setScene(scene);
primaryStage.setMaxWidth(500);
primaryStage.setMaxHeight(300);

primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}