[Review Request] Adding a TextField alignment property

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


Hi all,

http://javafx-jira.kenai.com/browse/RT-18410

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 
http://javafx-jira.kenai.com/browse/RT-18410

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.

Thanks,
Jonathan


More information about the openjfx-dev mailing list