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

The following are Jave code examples for showing how to use setPrefSize() 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:   Source Code and License Vote up 4 votes
public void setText() {
    TextField text = this.text;
    text.setPrefSize(150, 20);