Search code examples
netbeansjava-meword-wrapright-to-leftlwuit

wrapping text in RTL language using LWUIT


I'm developing a j2me application using Netbeans IDE and LWUIT library. I'm using Persian (RTL) language in my application using localization and showing them with bitmap font.

In order to wrap multiple line texts in a Form as Labels or in TextAreas. My problem is that they are breaking to multiple lines when they reach to the middle of screen width i.e they don’t fill one line till the end of the screen width and go to the next line. I set

maxwidth=Display.getInstance().getDisplayWidth());

Would you help me with this issue?


Solution

  • When creating the text area set the columns number to a large value (100 or so).