javafx textarea how to make smaller

Solutions on MaxInterview for javafx textarea how to make smaller by the best coders in the world

showing results for - "javafx textarea how to make smaller"
Lynn
30 Aug 2018
1import javafx.scene.control.TextArea;
2
3TextArea textArea = new TextArea(); //making a TextArea object
4
5textArea.setPrefHeight(400);  //sets height of the TextArea to 400 pixels 
6textArea.setPrefWidth(300);    //sets width of the TextArea to 300 pixels