@@ -305,16 +305,16 @@ public String toString() {
305305 * @param packager Packager
306306 */
307307 public void setDefaults (Packager packager ) {
308- this .setWindowX (getIfNull (this .getWindowX (), 10 ));
309- this .setWindowY (getIfNull (this .getWindowY (), 60 ));
310- this .setWindowWidth (getIfNull (this .getWindowWidth (), 540 ));
311- this .setWindowHeight (getIfNull (this .getWindowHeight (), 360 ));
312- this .setIconSize (getIfNull (this .getIconSize (), 128 ));
313- this .setTextSize (getIfNull (this .getTextSize (), 16 ));
314- this .setIconX (getIfNull (this .getIconX (), 52 ));
315- this .setIconY (getIfNull (this .getIconY (), 116 ));
316- this .setAppsLinkIconX (getIfNull (this .getAppsLinkIconX (), 360 ));
317- this .setAppsLinkIconY (getIfNull (this .getAppsLinkIconY (), 116 ));
318- this .setAppId (getIfNull (this .getAppId (), packager . getMainClass () ));
308+ this .setWindowX (getIfNull (this .getWindowX (), () -> 10 ));
309+ this .setWindowY (getIfNull (this .getWindowY (), () -> 60 ));
310+ this .setWindowWidth (getIfNull (this .getWindowWidth (), () -> 540 ));
311+ this .setWindowHeight (getIfNull (this .getWindowHeight (), () -> 360 ));
312+ this .setIconSize (getIfNull (this .getIconSize (), () -> 128 ));
313+ this .setTextSize (getIfNull (this .getTextSize (), () -> 16 ));
314+ this .setIconX (getIfNull (this .getIconX (), () -> 52 ));
315+ this .setIconY (getIfNull (this .getIconY (), () -> 116 ));
316+ this .setAppsLinkIconX (getIfNull (this .getAppsLinkIconX (), () -> 360 ));
317+ this .setAppsLinkIconY (getIfNull (this .getAppsLinkIconY (), () -> 116 ));
318+ this .setAppId (getIfNull (this .getAppId (), packager :: getMainClass ));
319319 }
320320}
0 commit comments