Java Code Examples for javafx.scene.control.TextField.setLayoutY()

The following are Jave code examples for showing how to use setLayoutY() of the javafx.scene.control.TextField class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: javafx-beginner   File: WebViewSide.java   Source Code and License Vote up 4 votes
public void setText() {
    TextField text = this.text;
    text.setPrefSize(150, 20);
    text.setLayoutX(250-text.getWidth());
    text.setLayoutY(10);
}