Skip to content
Snippets Groups Projects
Commit 9c34942a authored by Harry Linrui XU's avatar Harry Linrui XU
Browse files

Create method that switches to the expenses window

parent 234c1a9d
No related branches found
No related tags found
1 merge request!6Merging the frontend baseline to get up to date with the progress
Pipeline #204274 passed
......@@ -32,4 +32,12 @@ public class SceneController {
stage.setScene(scene);
stage.show();
}
}
\ No newline at end of file
public void switchExpenses(ActionEvent event) throws IOException {
FXMLLoader loader = new FXMLLoader(SceneController.class.getResource("/view/Expenses.fxml"));
Parent root = loader.load();
stage = (Stage)((Node)event.getSource()).getScene().getWindow();
scene = new Scene(root);
stage.setScene(scene);
stage.show();
}}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment