Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

javafx textarea how to make smaller

import javafx.scene.control.TextArea;

TextArea textArea = new TextArea(); //making a TextArea object

textArea.setPrefHeight(400);  //sets height of the TextArea to 400 pixels 
textArea.setPrefWidth(300);    //sets width of the TextArea to 300 pixels
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javafx #textarea #smaller
ADD COMMENT
Topic
Name
8+7 =