<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 2/1/2016 4:26 AM, Ambarish Rapte wrote:<br>
<blockquote cite="mid:f2ca4c01-de00-40fa-b263-6cac454f6038@default"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Alexandr,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span
style="color:#1F497D">Label, JTextField, JLabel:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span
style="color:#1F497D">On All platforms, replace the new line
character by space character.</span></p>
</div>
</blockquote>
<br>
I meant native controls behavior like Rich Edit on Windows or
NSTextField on Mac OS X.<br>
<br>
Thanks,<br>
Alexandr.<br>
<br>
<blockquote cite="mid:f2ca4c01-de00-40fa-b263-6cac454f6038@default"
type="cite">
<div class="WordSection1">
<p class="MsoNormal" style="text-indent:.5in"><span
style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">
TextField: <o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:.5in"><span
style="color:#1F497D">On Linux And MacOSX, replace the new
line character by space character.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">
But only on Windows, TextField terminated string after new
line character.<o:p></o:p></span></p>
<p class="MsoNormal"> <span
style="color:#1F497D">The behavior was corrected for
Windows, to replace EOL by space character with bug fix</span>
<a moz-do-not-send="true"
href="https://bugs.openjdk.java.net/browse/JDK-8055197">https://bugs.openjdk.java.net/browse/JDK-8055197</a><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Ambarish<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
Alexandr Scherbatiy <br>
<b>Sent:</b> Monday, February 01, 2016 5:05 PM<br>
<b>To:</b> Ambarish Rapte; <a class="moz-txt-link-abbreviated" href="mailto:awt-dev@openjdk.java.net">awt-dev@openjdk.java.net</a><br>
<b>Subject:</b> Re: <AWT Dev> Should TextField
Documentation be updated ?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><br>
What is behavior of text controls on different OSes
(Windows, Linux, Mac OS X)?<br>
Is new line character is replaced to to a space, preserved,
or the text is truncated?<br>
<br>
Thanks,<br>
Alexandr. <br>
<br>
On 1/28/2016 3:19 AM, Ambarish Rapte wrote:<br>
<br>
<o:p></o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">If the input
string contains new line character, then TextField replaces it
with space character. <br>
This is not documented at java docs,<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><a
moz-do-not-send="true"
href="https://docs.oracle.com/javase/8/docs/api/index.html?java/awt/TextField.html"><a class="moz-txt-link-freetext" href="https://docs.oracle.com/javase/8/docs/api/index.html?java/awt/TextField.html">https://docs.oracle.com/javase/8/docs/api/index.html?java/awt/TextField.html</a></a><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
<p class="MsoNormal"> Could you please provide
views on whether to update the awt.TextField documentation
with above behavior ?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> Some more information:<o:p></o:p></p>
<p class="MsoNormal"> The behavior was corrected
for Windows with bug fix <a moz-do-not-send="true"
href="https://bugs.openjdk.java.net/browse/JDK-8055197">https://bugs.openjdk.java.net/browse/JDK-8055197</a><o:p></o:p></p>
<p class="MsoNormal"> After this bug fix, This
behavior is common across platforms.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Ambarish<o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><o:p> </o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>