teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

setWidthが使えなかったので訂正

2019/01/09 03:33

投稿

dice142
dice142

スコア5158

answer CHANGED
@@ -1,3 +1,7 @@
1
1
  サイズ設定はもちろん、別々に設定することも可能です。
2
2
  [https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/control/TextArea.html](https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/control/TextArea.html)
3
- [https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/layout/Region.html#setWidth-double-](https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/layout/Region.html#setWidth-double-)
3
+ [~~https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/layout/Region.html#setWidth-double-~~](https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/layout/Region.html#setWidth-double-)
4
+ [https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/control/TextArea.html#setPrefColumnCount-int-](https://docs.oracle.com/javase/jp/8/javafx/api/javafx/scene/control/TextArea.html#setPrefColumnCount-int-)
5
+
6
+ ただ、Labelなどのような設定ではなさそうなので、TextAreaを置いたPane系でサイズ指定して、
7
+ そのPane系を基盤のPaneに置くのが良い気がします。