Skip to content

Commit

Permalink
Feat: Replace with new loadscene method
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianBalunan committed Mar 13, 2026
1 parent 27a25f6 commit c0679ce
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@ public void setCharity(Charity charity) {
}

public void switchToFrontPage(ActionEvent event) {
try {
FXMLLoader fxmlLoader =
new FXMLLoader(HmHApplication.class.getResource("/fxml/frontPage.fxml"));
Parent root = fxmlLoader.load();

Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();
Scene scene = new Scene(root);
stage.setScene(scene);
stage.setFullScreen(true);
stage.show();
} catch (IOException e) {
throw new RuntimeException(e);
}
LoaderScene.LoadScene("FrontPage", event, null);
}
}

0 comments on commit c0679ce

Please sign in to comment.