更新时间:2022-04-03 05:49:15
我为一个标签创建了一个单独的FXML文件,为FXMl文件创建了一个加载器,然后加载它以获取根。使用root来构建场景,最后将场景添加到TabPane!
I made a separate FXML file for a tab, created a loader for the FXMl file, then load it to get the root. Use the root to build a scene and finally add the scene to the TabPane!