On 2/1/2016 4:26 AM, Ambarish Rapte wrote:
Hi Alexandr,
Label, JTextField, JLabel:
On All platforms, replace the new line character by space character.
I meant native controls behavior like Rich Edit on Windows or
NSTextField on Mac OS X.
Thanks,
Alexandr.
TextField:
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
Thanks,
Ambarish
*From:*Alexandr Scherbatiy
*Sent:* Monday, February 01, 2016 5:05 PM
*To:* Ambarish Rapte; awt-dev@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?
Thanks,
Alexandr.
On 1/28/2016 3:19 AM, Ambarish Rapte wrote:
Hi,
If the input string contains new line character, then TextField
replaces it with space character.
This is not documented at java docs,
https://docs.oracle.com/javase/8/docs/api/index.html?java/awt/TextField.html
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.
Thanks,
Ambarish