<AWT Dev> Review request for 8145284: [Documentation] [TextField] Missing new line character handling
ambarish.rapte at oracle.com
Thu May 12 07:03:51 UTC 2016
Please review this documentation change for awt.TextField,
What is the change:
After fix of 8055197, TextField replaces all new line characters from input string with space characters.
This behavior is not documented, hence this change to document the behavior.
AWT does not use the native NSTextField, but instead delegates to JPasswordField, which replaces new line character with space character.
On native Mac platform, NSTextField, is not a one line text component.
If input string contains new line character then NSTextField displays multiline text.
Hence we cannot consider / replicate native platform behavior here.
AWT delegates to peer side JPasswordField, which replaces new line character with space character.
The TextField terminates string after the new line character and was reported as 8055197.
Considering the above behavior of Linux and mac, 8055197 was fixed on windows by replicating the same behavior of mac and linux.
After the fix of 8055197, All the platforms uniformly replace new line character with space character.
Hence the behavior should be documented.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev