Unlike in previous releases of JavaFX, support for single line input is not available as part of the TextArea control, however this is the sole-purpose of the TextField control. I’m using the newcell.childNodes[0].setAttribute(“name”,”line”+rowCount+”[]”); to … Follow edited Dec 14 '18 at 21:22. Using width: 100% I added the following line to your javascript function, setting the width of div to the width of the textArea element prior to resizing the height of the textArea: divHidden.style.width = element.getBoundingClientRect().width + ‘px’; \n is the linefeed character literal (ASCII 10) in a Javascript string. In order to change the color of the line stroke() function is used and in order to change the width of the line strokeWeight() function is used. The HtmlHelper class includes two extension methods to render multi-line