fxmlファイルで Cannot set javafx.scene.control.TextArea to field ‘textArea’

エラーメッセージ
Cannot set javafx.scene.control.TextArea to field ‘textArea’
Cannot set javafx.scene.control.TextField to field ‘textField’

 

現象1
fxmlファイルでfx:idが設定できないでエラーが出ているがプログラム自体はビルドできる。
実行すると、
main.javaのFXMLLoader.load()でエラーが発生する。

 

現象2
問題となっているTextAreaを使用するために、以下の一文で連携させるが、
@FXML private TextArea textArea;
そうすると、fxmlファイルの方でエラーが出る。

 

“fxmlファイルで Cannot set javafx.scene.control.TextArea to field ‘textArea’” の続きを読む