Last active
November 22, 2021 23:44
-
-
Save geoaxis/44033d522deaa0e5ca61947742fa7fe2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SpringBootApplication | |
public class BlessedJavafxRpi3Application extends Application { | |
@Autowired | |
private SensorTagScannerController sensorTagScannerController; | |
public static void main(String[] args) { | |
Application.launch(); | |
} | |
@Override | |
public void init() { | |
SpringApplication.run(getClass()).getAutowireCapableBeanFactory().autowireBean(this); | |
} | |
@Override | |
public void start(Stage stage) throws IOException { | |
FXMLLoader fxmlLoader = new FXMLLoader(BlessedJavafxRpi3Application.class.getResource( | |
"sensor-tag-scanner-view.fxml")); | |
fxmlLoader.setControllerFactory(param -> sensorTagScannerController); | |
Scene scene = new Scene(fxmlLoader.load(), 800, 480); | |
stage.setTitle("Sensor Tag Viewer!"); | |
stage.setScene(scene); | |
stage.show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment