📜  javafx textarea 如何变小 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:04.854000             🧑  作者: Mango

代码示例1
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