随笔分类 -  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 肖建锋 阅读(2016) 评论(0) 推荐(0)
javaFX 整合 maven
摘要:pom.xml 项目文件结果 运行 jfx:run 命令 阅读全文
posted @ 2019-06-20 17:24 肖建锋 阅读(1562) 评论(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 肖建锋 阅读(1244) 评论(1) 推荐(0)