The Text class lets you align the contained text, and similarly I propose adding support for this to the TextField class as well.
In our application, we present an image with a name. The name should be centered below the image. If we use a Text, it can be centered using the setTextAlignment method, but since the name should be editable we have to use a TextField.
In our application, we present an image with a name. The name should be centered below the image. If we use a Text, it can be centered using the setTextAlignment method, but since the name should be editable we have to use a TextField.
- duplicates
-
JDK-8100809 I need to set allignment of the text in a TextField to right. There is no such under TextField. Anybody knows how to set alignment in a textfield in javaFX 2.0
-
- Closed
-