将
Parent root = FXMLLoader.load(getClass().getResource("xml/MainUI.fxml"));
改为:
 Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("xml/MainUI.fxml"));

 

相关文章:

  • 2021-06-25
  • 2021-06-19
  • 2021-07-26
  • 2021-09-17
  • 2022-12-23
  • 2022-01-17
  • 2021-12-07
  • 2021-11-13
猜你喜欢
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案