情况说明:
javafx 在Controller类中定义了对应的元素:
如:
public class Controller {
@FXML public TextField dirPath;
@FXML public TextArea showNmb;
但在fxml文件中却显示该元素fx:id为红色:

将fx:id修改为任意,却红色告警消失:

但这样,无法调用;百思不得其解,后来发现是引用时,缺少了
import javafx.scene.control.TextArea;
添加之后,遂正常:

参考:https://teamtreehouse.com/community/firstname-is-marked-as-red-invocationtargetexception-thrown







![[工具] Real 媒体过滤器-去掉电影中弹出广告的工具软件-微慑信息网-VulSee.com](attachments/month_0606/j200661914740.gif)
![[测试]Apache Solr远程命令执行漏洞-微慑信息网-VulSee.com](http://vulsee.com/wp-content/uploads/2019/10/151.png)


![[八卦] 王婷婷—揭秘一个大三女生的性爱录像-微慑信息网-VulSee.com](http://free.86hy.com/crack/pic/1.jpg)
![[随笔]今天国际警察节-微慑信息网-VulSee.com](http://photo.sohu.com/20041017/Img222528326.jpg)

青云网
