<Swing Dev> RFR: 8268087: Update documentation of the JPasswordField

Phil Race prr at openjdk.java.net
Thu Jun 3 06:00:38 UTC 2021


On Wed, 2 Jun 2021 01:14:39 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> Some useful documentation was added to the JPasswordField.

> _Mailing list message from [Alan Snyder](mailto:javalists at cbfiddle.com) on [swing-dev](mailto:swing-dev at mail.openjdk.java.net):_
> 
> I think this statement is over-constraining the UI behavior.
> 
> What the password field displays does not have to be text in the ordinary sense of the word. It could be a series of large dots. It is really up to the UI.
> 

It is a text field. It displays unicode text. Nothing else. It can't display a graphic such as a dot unless it is a unicode
assigned code point. So if we want to re-define text across the platform to exclude some subset of unicode it will be
a questionable and difficult job and this informational comment isn't the place to start.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4296


More information about the swing-dev mailing list