3 import javafx.scene.Scene;
4 import javafx.stage.Modality;
5 import javafx.stage.Stage;
6 import javafx.stage.StageStyle;
7 import javafx.stage.Window;
8 import org.springframework.beans.factory.annotation.Autowired;
10 import java.io.IOException;
38 this(fxml, owner, StageStyle.DECORATED);
51 initModality(Modality.NONE);
57 @Override
public void loadFXML() throws IOException {
59 this.fxmlLoader.setLocation(this.fxml);
60 setScene(
new Scene(this.fxmlLoader.load()));
67 this.fxmlLoader = loader;
74 private void resetLoader(){
75 this.fxmlLoader.setRoot(null);
76 this.fxmlLoader.setLocation(null);
void setFXMLLoader(FXMLLoader loader)
AutowiredFXMLStage(URL fxml, Window owner, StageStyle style)
AutowiredFXMLStage(URL fxml, Window owner)