Utility.exc(ex);
ex.printStackTrace();
}
try {
__imm = new ImageView(Utility.getImage(icon));
__button.setGraphic(__imm);
} catch (Exception exc) {
Utility.exc(exc);
exc.printStackTrace();
}
String txt_lite = RBLoader.ll(txt);
if (!tooltip) {
setStyle("-fx-background-color: " + color + "; "
+ "-fx-border-width: " + border_width + "; "
+ "-fx-border-color: white;");
__label = new Text(" " + txt_lite);
__label.setId("toolbar_label");
__label.setStyle("-fx-background-color: " + color + ";"
+ "-fx-font-size: 10px;"
+ "-fx-font-weight: bold;");
__label.setFill(Color.WHITE);
__label.setTextAlignment(TextAlignment.LEFT);
__label.setFontSmoothingType(FontSmoothingType.LCD);
BorderPane bp = new BorderPane();
bp.setCenter(Utility.sep());
bp.setBottom(__label);
setBottom(bp);
} else {
setStyle("-fx-background-color: " + color + "; "
+ "-fx-border-width: 1; "
+ "-fx-border-color: " + DEF_COLOR_BTN + ";");
final Tooltip tt = new Tooltip();
tt.setText(txt_lite);
tt.setGraphic(new ImageView(Utility.getImage(icon)));
__button.setTooltip(tt);
}
setCenter(__button);