带有垂直滚动条Java FXML的文本区域

时间:2018-04-12 14:32:01

标签: javafx fxml

我正在尝试在.fxml文件中定义一个带有垂直滚动的TextArea。但是,不幸的是,尽管尝试了各种选项,我只得到一个水平滚动条。我打算在那里放一个由3个段落组成的文本。

            <TextArea fx:id="legalproseTextArea" editable="false" focusTraversable="false" prefHeight="400.0" prefWidth="400.0" style="overflow:scroll" text="“Transaction” includes a payment, purchase, sale, loan, pledge, gift, transfer, or delivery, and with respect to a financial institution includes a deposit, withdrawal, transfer between accounts, exchange of currency, loan, extension of credit, purchase or sale of any stock, bond, certificate of deposit, or other monetary instrument, use of a safe deposit box, or any other payment, transfer, or delivery by, through, or to a financial institution, by whatever means effected, except that “transaction” shall not include payments to attorneys for legal services." visible="false" GridPane.columnIndex="1" GridPane.columnSpan="4" GridPane.hgrow="ALWAYS" GridPane.rowIndex="19" />

请帮忙。谢谢。

0 个答案:

没有答案