I am creating chat application using JavaFX and now I am working on chat window. And I am wondering if is it possible to create multiple instances of window like this using this method:
FXMLLoader.load(getClass().getResource("chatWindow.fxml"));
and setting all properties like name - Harry Potter, image etc. via getting controller and using setters. Does every window would have it's own controller? Or it's only one controller per all windows? Or I have to "translate" fxml code to Java code, and creating those scenes using Java? Like that:
VBox vbox = new VBox();