The textarea should serve as an editing box. Allan Veloso 1, 12 12 silver badges 22 22 bronze badges. Sign up or log in Sign up using Google. Bellal Hossain Bellal Hossain 26 4 4 bronze badges. Throws: HeadlessException - if GraphicsEnvironment. What is required is a call to AutoGrowTextArea straight away, so it looks like this: Mary had a little lamb, its fleece was white as snow, and everywhere that Mary went the lamb was sure to go. Parameters: text - the text to be displayed; if text is null , the empty string "" will be displayed rows - the number of rows columns - the number of columns Throws: HeadlessException - if GraphicsEnvironment.
Related Post as a guest Name. Setup a private space for you and your coworkers to ask questions and share information. If you do not want to allow user to enter text TextView is the best option here. Parameters: str - the non- null text to use as the replacement start - the start position end - the end position Since: JDK1.