Answers for "set width of a textarea javafx"

1

javafx textarea font size

textArea.setStyle("-fx-font-size: 20");
Posted by: Guest on April-03-2020
0

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
Posted by: Guest on April-03-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language