ipp.getCenterBorderPane().setTop(hbox);
if (icon != null) {
hbox.getChildren().add(icon);
}
if (header != null) {
FlowPane p = new FlowPane();
p.setAlignment(Pos.CENTER);
p.getChildren().add(header);
hbox.getChildren().add(p);
}
if (content != null && password_field == null) {
ipp.getCenterBorderPane().setCenter(content);
} else if (content != null && password_field != null) {
BorderPane center_pane = new BorderPane();
ipp.getCenterBorderPane().setCenter(center_pane);
center_pane.setTop(content);
if (content.getText() != null && content.getText().length() < 64) {
content.setTranslateX(120.0);
}
FlowPane flow = new FlowPane();
flow.setHgap(2);
flow.setVgap(2);
flow.setAlignment(Pos.CENTER);
flow.getChildren().add(password_field);
password_field.setPaddingValue(new Insets(3, 0, 0, 0));
center_pane.setCenter(flow);
} else if (content == null && password_field != null) {
ipp.getCenterBorderPane().setCenter(password_field);
}
FlowPane flow = new FlowPane();
ipp.getCenterBorderPane().setBottom(flow);
flow.setAlignment(Pos.CENTER_RIGHT);
flow.setHgap(20.0);
if (check_box != null) {
flow.getChildren().add(check_box);
flow.getChildren().add(new Label(" "));
flow.getChildren().add(new Label(" "));
}
if (ok_btn != null) {
flow.getChildren().add(ok_btn);
}
if (cancel_btn != null) {
flow.getChildren().add(cancel_btn);
}
flow.getChildren().add(new Label(" "));
ipp.blurShow();
is_show = true;
}