List of usage examples for javafx.scene.layout VBox VBox
public VBox()
From source file:Main.java
/** * Creates a popup containing error without any pretty things for a graphical way to show errors * @param error Error string to show//from ww w . j a va 2s .c om */ public static void showError(String error) { if (Platform.isFxApplicationThread()) { Stage s = new Stage(); VBox v = new VBox(); v.getChildren().add(new Label("Error [" + error + ']')); Scene sc = new Scene(v); s.setTitle("Fail"); s.setScene(sc); s.show(); } else { Platform.runLater(() -> { Stage s = new Stage(); VBox v = new VBox(); v.getChildren().add(new Label("Error [" + error + ']')); Scene sc = new Scene(v); s.setTitle("Fail"); s.setScene(sc); s.show(); }); } }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/*from w w w.j a va 2s . co m*/ Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from ww w. j a v a 2s . c o m Line line = new Line(0, 0, 0, 0); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from w w w .ja v a 2 s.com Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.getStartY()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from www.j a va 2 s . c o m Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); line.setEndY(0.4); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from w w w. ja v a 2 s . c om Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.getStartX()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/*from www . j ava2s .c om*/ Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); line.setStartX(0.4); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);// w w w . j a v a 2 s . co m Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); line.setEndX(0.4); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from w w w. j a v a 2s .c om Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.startYProperty()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { VBox box = new VBox(); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/* w w w .j a va 2 s . c o m*/ Line line = new Line(); line.setStartX(0.0f); line.setStartY(0.0f); line.setEndX(100.0f); line.setEndY(100.0f); System.out.println(line.getEndX()); box.getChildren().add(line); stage.setScene(scene); stage.show(); }