TextField Document model

Richard Bair richard.bair at oracle.com
Mon Oct 22 08:47:49 PDT 2012

> Would you consider having a setContent(TextFieldDocument doc) method in
> TextField?  The length() method and the get(int, int) method could be
> final, making it necessary to call super.insert() or super.delete() to get
> anything done.  This would provide the flexibility (likely all the
> flexibility) and yet would prevent a developer from making a fairly large
> set of mistakes.

That is a very interesting proposal as well.

Why don't we list the types of text input control scenario's we're interested in (the force all caps case is one I wouldn't have thought of, I'm sure you've seen tons of others in your time developing apps). Once we've got something of a comprehensive list, I think a clear solution that weighs the pros / cons will become more obvious to us.


More information about the openjfx-dev mailing list