0
public void startQuiz(ActionEvent ae) {

    try {
        mainPane.setVisible(true);//main splitpane      
        AnchorPane newPane = (AnchorPane) FXMLLoader.load(getClass().getResource("TestFXML.fxml"));
        mainPane.getItems().set(1, newPane);//don't know loading in either left or right Anchorpane
        labelPane.setVisible(false);//previous child pane to hide
        mainPane.setVisible(true);
        menuPane.setVisible(true);//right pane
    } catch (Exception ex) {//`errors is in loading pane`
        errorAlert.setContentText("" + ex);
        errorAlert.show();
    }
}
4

0 回答 0