Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I get word-wrap in a TextArea?

TEXTAREA word-wrap
0
Posted

How do I get word-wrap in a TextArea?

0

Ans : It’s a little obscure. Creating a TextArea with no horizontal scrollbar causes wrapping to occur automatically. The idea is that if you ask for a scroll to scroll viewing over to the right, there is no reason for the widget to do word wrap. So take away the scrollbar, and word wrap will be done instead. Supply TextArea.SCROLLBARS_NONE or TextArea.SCROLLBARS_VERTICAL_ONLY to the TextArea constructor to get word wrap. By default, a TextArea is created with both horizontal and vertical scrollbars.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.