RFR: 6852577: Only for Nimbus LAF UIManager.get("PasswordField.echoChar") is null [v3]

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Sep 8 05:20:56 UTC 2022


On Thu, 8 Sep 2022 03:37:23 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Honour PasswordField.echoChar property
>
> src/java.desktop/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java line 731:
> 
>> 729:                   });
>> 730: 
>> 731:         table.put("PasswordField.echoChar", '*');
> 
> It is still unclear where this "*" was stored before(will we ignore it now?), since the Nimbus used that symbol already.

"*" is the default char unless overridden by echoChar property and is set [here](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/JPasswordField.java#L178)

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

PR: https://git.openjdk.org/jdk/pull/10035



More information about the client-libs-dev mailing list