List of usage examples for javafx.scene Scene setRoot
public final void setRoot(Parent value)
From source file:Main.java
@Override public void start(Stage stage) { Group root = new Group(); Scene scene = new Scene(root, 260, 80); stage.setScene(scene);//from w w w. j a v a2 s .c om Group g = new Group(); ProgressIndicator p1 = new ProgressIndicator(); p1.setProgress(0.25F); g.getChildren().add(p1); scene.setRoot(g); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500);/*from ww w .j ava2s . co m*/ stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); lineXAxis.setEndMargin(0.9); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500);/* w ww.ja va 2 s.c om*/ stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); lineXAxis.setStartMargin(1.2); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500);// w ww . j av a 2 s.c o m stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); lineXAxis.setGapStartAndEnd(true); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500);/*from w ww . j av a 2s. c om*/ stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); System.out.println(lineXAxis.getEndMargin()); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Group root = new Group(); Scene scene = new Scene(root, 500, 200); stage.setScene(scene);/*w w w . jav a2 s.c o m*/ GridPane grid = new GridPane(); grid.setPadding(new Insets(10, 10, 10, 10)); grid.setVgap(2); grid.setHgap(5); scene.setRoot(grid); caption.setFont(Font.font("Verdana", 20)); GridPane.setConstraints(caption, 0, 0); GridPane.setColumnSpan(caption, 8); grid.getChildren().add(caption); final Separator sepHor = new Separator(); sepHor.setValignment(VPos.CENTER); GridPane.setConstraints(sepHor, 0, 1); GridPane.setColumnSpan(sepHor, 7); grid.getChildren().add(sepHor); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500);/* w ww . j a va2 s . co m*/ stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); System.out.println(lineXAxis.toRealValue(1.2)); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500);/* w ww . j a v a 2 s. c o m*/ stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); System.out.println(lineXAxis.getStartMargin()); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500);/*from w w w . jav a 2s. com*/ stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); System.out.println(lineXAxis.getZeroPosition()); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500);/*from w w w. j a v a2 s .c o m*/ stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); System.out.println(lineXAxis.getCategorySpacing()); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }