MAX_VALUE ソリューションは少しハックであり、パフォーマンスの問題を引き起こす可能性があります。また、これに対する答えは、親コンテナーが何であるかによって異なります。とにかく、それを行うより良い方法は次のようになります。
textArea.prefWidthProperty().bind(<parentControl>.prefWidthProperty());
textArea.prefHeightProperty().bind(<parentConrol>.prefHeightProperty());
特に親が明示的なものではなく計算された次元を使用している場合は、優先プロパティを実際のプロパティにバインドすることもできます。
textArea.prefWidthProperty().bind(<parentControl>.widthProperty());
textArea.prefHeightProperty().bind(<parentConrol>.heightProperty());
親コンテナの layoutChildren() メソッドをオーバーライドして呼び出すことにより、バインディングを使用せずにこれを行うこともできます。
textArea.resize(getWidth(), getHeight());
super.layoutChildren() を呼び出すことを忘れないでください...