List of usage examples for javafx.scene.shape VLineTo VLineTo
public VLineTo()
From source file:Main.java
@Override public void start(final Stage stage) { stage.setTitle("HTML"); stage.setWidth(500);// ww w. j av a 2s.co m stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); Path path = new Path(); path.getElements().add(new MoveTo(50.0f, 0.0f)); VLineTo vlt = new VLineTo(); vlt.setY(.7); path.getElements().add(vlt); System.out.println(vlt.yProperty()); root.getChildren().addAll(path); scene.setRoot(root); stage.setScene(scene); stage.show(); }