[Review Request] Adding a TextField alignment property

Jonathan Giles jonathan.giles at oracle.com
Thu Jan 12 16:15:01 PST 2012

Hi all,


This review request relates to adding an alignment property to TextField 
to allow for developers to specify the alignment of text. The API is the 
usual JavaFX beans API: getAlignment(), setAlignment(Pos) and 
alignmentProperty(). In addition, an -fx-alignment property is exposed 
via CSS to allow for setting alignment in CSS.

The default value will be Pos.CENTER_LEFT so as to not affect current 
users of TextField (plus it's the sane default anyway!)

A patch for this API change can be seen at 

It is our intention to include this API in JavaFX 2.1, so with feature 
freeze nearing feedback would be appreciated sooner rather than later.


More information about the openjfx-dev mailing list