且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在JavaFX中将内容从一个选项卡复制到另一个选项卡?

更新时间: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!