MCPcopy Create free account
hub / github.com/JulienTroudet/easyJavaFXSetup / start

Method start

src/main/java/myapp/App.java:24–43  ·  view source on GitHub ↗
(Stage stage)

Source from the content-addressed store, hash-verified

22
23
24 @Override
25 public void start(Stage stage) {
26 try {
27 UserSettingsService.initTheme();
28
29 updateAppWindowTitle(stage);
30 stage.getIcons().add(new Image(Objects.requireNonNull(App.class.getResourceAsStream("icon-64.png"))));
31 stage.setMinHeight(300);
32 stage.setMinWidth(400);
33 stage.initStyle(StageStyle.DECORATED);
34
35 MainController.load(stage);
36
37 WindowService.setup(stage);
38 stage.show();
39
40 } catch (Exception e) {
41 e.printStackTrace();
42 }
43 }
44
45 public static void updateAppWindowTitle(Stage stage) {
46 ResourceBundle resourceBundle =

Callers

nothing calls this directly

Calls 4

initThemeMethod · 0.95
updateAppWindowTitleMethod · 0.95
loadMethod · 0.95
setupMethod · 0.95

Tested by

no test coverage detected