[Review Request] Adding a TextField alignment property

Richard Bair richard.bair at oracle.com
Fri Jan 13 08:53:20 PST 2012

Looks good!

On Jan 12, 2012, at 4:15 PM, Jonathan Giles <jonathan.giles at oracle.com> wrote:

> 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