TextArea , uneditable constraint, rows, and cols
I'm trying to display a Dialog with a TextArea showing the error message. I have several questions and points:
- TextArea.setConstraint(TextArea.UNEDITABLE) doesn't work, the TextArea remains editable. It's the same if you use the constructor with constraint as param. So I only found TextArea.setEditable(false) as the working method. Comments?
- If I'm not setting a Layout to the Dialog (implicit FlowLayout), I need to override calcPreferredSize() or make calls to setPreferredW() and setPreferredH() in order to make the TextArea to fill all the Dialog. Why this behaviour?
- If the TextArea is not editable, just by setting rows to some value higher than 1 will make the Component infinitely multilined or it will multiline only the rows specified by setRows() method?
Thanks a lot. Kind Regards.