Use BisqTextField to align top label right

This commit is contained in:
Christoph Atteneder 2018-11-29 16:59:33 +01:00
parent 5238a61f4f
commit cba70566f7
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class BalanceTextField extends AnchorPane {
///////////////////////////////////////////////////////////////////////////////////////////
public BalanceTextField(String label) {
textField = new JFXTextField();
textField = new BisqTextField();
textField.setLabelFloat(true);
textField.setPromptText(label);
textField.setFocusTraversable(false);

View File

@ -58,7 +58,7 @@ public class InfoTextField extends AnchorPane {
public InfoTextField() {
arrowLocation = PopOver.ArrowLocation.RIGHT_TOP;;
textField = new JFXTextField();
textField = new BisqTextField();
textField.setLabelFloat(true);
textField.setEditable(false);
textField.textProperty().bind(text);