<AWT Dev> Should TextField Documentation be updated ?
ambarish.rapte at oracle.com
Mon Feb 1 12:26:12 UTC 2016
Label, JTextField, JLabel:
On All platforms, replace the new line character by space character.
On Linux And MacOSX, replace the new line character by space character.
But only on Windows, TextField terminated string after new line character.
The behavior was corrected for Windows, to replace EOL by space character with bug fix https://bugs.openjdk.java.net/browse/JDK-8055197
From: Alexandr Scherbatiy
Sent: Monday, February 01, 2016 5:05 PM
To: Ambarish Rapte; awt-dev at openjdk.java.net
Subject: Re: <AWT Dev> Should TextField Documentation be updated ?
What is behavior of text controls on different OSes (Windows, Linux, Mac OS X)?
Is new line character is replaced to to a space, preserved, or the text is truncated?
On 1/28/2016 3:19 AM, Ambarish Rapte wrote:
If the input string contains new line character, then TextField replaces it with space character.
This is not documented at java docs,
Could you please provide views on whether to update the awt.TextField documentation with above behavior ?
Some more information:
The behavior was corrected for Windows with bug fix https://bugs.openjdk.java.net/browse/JDK-8055197
After this bug fix, This behavior is common across platforms.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev