Guest User

Untitled

a guest
Dec 17th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public static void openForm(IController source, Account account, String path) throws Exception {
  2. System.out.println(source.getClass().getName() + " is opening " + path);
  3. FXMLLoader loader = new FXMLLoader(
  4. source.getClass().getResource(path)
  5. );
  6. Stage stage = new Stage();
  7. Parent root1 = (Parent) loader.load();
  8. stage.setScene(new Scene(root1));
  9. loader.<IController>getController().initSessionID(account);
  10. stage.show();
  11. }
Add Comment
Please, Sign In to add comment