public void call(ActionEvent actionEvent) throws Exception {
stage.hide();
OSUtil.openBrowser(Settings.DOWNLOAD_URL);
}
};
FlexBox box = new VFlexBox().setBoxAlign(VFlexBox.Align.Stretch);
box.add(new Label("New Version Available!").setId("updates-header"));
for(Elem release : newReleases) {
u.p("build = " + release.attr("buildNumber"));
u.p("date = " + release.attr("buildDate"));
u.p("version = " + release.attr("version"));
u.p("description = " + release.text());
box.add(new Label("Version: " + release.attr("version")).setPrefWidth(200));
box.add(new Label(release.text()).setPrefWidth(200));
}
box.add(new Spacer(),1);
box.add(new HFlexBox()
.add(new Button("Get the Update").onClicked(getUpdate))
.add(new Button("Skip This Version").onClicked(skipVersion))
.add(new Button("Remind Me Later").onClicked(dismiss))
);
stage.setContent(box);