B4J Question TextField

moore_it

Well-Known Member
Licensed User
Longtime User
Hi all,

it's possible to align text in an editfield ?
Es.: right for numbers input
left for text input
center for date input ....

thanks in advice
Toni
 

Daestrum

Expert
Licensed User
Longtime User
Use style "-fx-alignment: left" or "-fx-alignment: right" or "-fx-alignment: center"
 
Upvote 0

giannimaione

Well-Known Member
Licensed User
Longtime User
WARNING: Caught java.lang.IllegalArgumentException: No enum constant javafx.geometry.Pos.right' while calculating value for '-fx-alignment' from inline style on TextField@11dbb6a[styleClass=text-input text-field]
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Apologies (Brain was not engaged whilst typing)
It's actually :

CENTER_LEFT
CENTER_RIGHT
CENTER
 
Upvote 0
Top