Tag: fxmlloader

在fxml文件之间切换

我在swing组件中使用jfxPanel创建了一个应用程序。 我面临的问题是我无法更改fxml文件。 当单击fxml的按钮时,我想处理该fxml并在那里加载另一个fxml文件。 这就是我到目前为止所做的 public class NonResponsiveButtons extends JFrame { NonResponsiveButtons nrb; BottomPanelIncomingController bpic; JPanel panel; JPanel bPanel; private int applicationWidth_600 = 600; private int applicationHeight_600 = 600; private int upperPanelHeight_535 = 535; private int bottomPanelHeight_65 = (applicationHeight_600-upperPanelHeight_535); public static void main(String[] args) { new NonResponsiveButtons(); } public NonResponsiveButtons(){ final JFXPanel fxPanel = new JFXPanel(); […]