Text alignment in a TextArea()
843849Nov 25 2005 — edited Nov 28 2005Hi all,
I'm using a TextArea object to list some strings. In fact, what I need is something like a JTable, but we don't have it in AWT/CDC-PP, so the solution I found is to create a string and append it to the TextArea().
So, my problem is that the text aligment is strange. I don't know why. Below and example:
Imagine two strings:
"XXXXXXXXXXXXXXXXXXXXXX 999.99 999.99"
"YYYYYYYYYYYYYYYYYYYYYY 999.99 999.99"
When I test it with System.out.println the strings are aligned. But in my TextArea() it looks like this:
"XXXXXXXXXXXXXXXXXXXXXX 999.99 999.99"
"YYYYYYYYYYYYYYYYYYYYYY 999.99 999.99"
Why it happens ? And how can I solve it ?
Thanks !