The Label component doesn't support carriage returns. However, you can use a non-editable TextArea to show line breaks:
<TextArea text="abc\ndef" editable="false"/> On Dec 29, 2010, at 8:19 PM, Le Zhou wrote: > Hi everyone, > > How to insert new line into the text of a label? > > In C, or Java text as "abc\ndef" will be shown as follows: > > abc > def > > but if I have one label like <Label text="abc\ndef"/>, the text shown on this > label is: > > abc\ndef > > Is there any esapce charactor or method to insert a new line into the text on > the label, just the '\n' in C or Java? > > > Thanks! >
