随笔 - 232  文章 - 1  评论 - 28  阅读 - 60万 

随笔分类 -  javafx

JavaFX窗体设置无边框
摘要:public void start(Stage stage) throws Exception { longStart(); Parent root = FXMLLoader.load(getClass().getResource("FXMLDocument.fxml")); Scene scene = new Scene(ro... 阅读全文
posted @ 2019-06-20 17:31 肖建锋 阅读(1992) 评论(0) 推荐(0) 编辑
javaFX 整合 maven
摘要:pom.xml 项目文件结果 运行 jfx:run 命令 阅读全文
posted @ 2019-06-20 17:24 肖建锋 阅读(1546) 评论(0) 推荐(0) 编辑
Caused by: java.lang.NullPointerException: Location is required
摘要:将 Parent root = FXMLLoader.load(getClass().getResource("xml/MainUI.fxml")); 改为: Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("xml/MainUI.fxml")); 阅读全文
posted @ 2019-06-20 17:21 肖建锋 阅读(1233) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示