1 package ui.controllers;
3 import javafx.fxml.FXML;
4 import javafx.stage.Window;
5 import org.springframework.beans.factory.annotation.Autowired;
11 import javax.annotation.PostConstruct;
12 import java.io.IOException;
28 private final URL newDeviceFormLocation = getClass().getResource(
29 "/modals/NewDevice.fxml" 50 public void setUp() throws IOException {
51 configureNewDeviceFormStage();
58 newDeviceFormStage.
show();
66 private void configureNewDeviceFormStage()
throws IOException {
68 newDeviceFormLocation, castStageToWindow(applicationStage)
78 private static Window castStageToWindow(
FXMLStage stage){
79 return (Window) stage;
void setFXMLLoader(FXMLLoader loader)
void displayNewDeviceForm()