コード例 #1
0
ファイル: FormBuilder.java プロジェクト: rohythakur/bitsquare
  public static Tuple3<HBox, InputTextField, Label> getValueCurrencyBox(String promptText) {
    InputTextField input = new InputTextField();
    input.setPrefWidth(170);
    input.setAlignment(Pos.CENTER_RIGHT);
    input.setId("text-input-with-currency-text-field");
    input.setPromptText(promptText);

    Label currency = new Label();
    currency.setId("currency-info-label");

    HBox box = new HBox();
    box.getChildren().addAll(input, currency);
    return new Tuple3<>(box, input, currency);
  }