3

I've created a Label on a Form, but is too large to show it in one line, is it posible make a break line? I am using LWUIT on J2ME.

Thank you.

bharath
  • 14,283
  • 16
  • 57
  • 95
grouser
  • 618
  • 8
  • 23

4 Answers4

2

Label is not make to break lines. Why don't you try with TextArea? It allows you to show multiline items.

Mun0n
  • 4,438
  • 4
  • 28
  • 46
2

Use TextArea instead of Label and disable the editable mode and create empty border to that TextArea. Label isn't allow multi line.

bharath
  • 14,283
  • 16
  • 57
  • 95
  • 1
    Both this and jmunoz answers are correct. I would personally add: textArea.setUIID("Label") instead of setting the border. – Shai Almog Feb 04 '12 at 10:43
0

Create a Label label = new Label(" ") and add it to the container.

AndroGeek
  • 1,280
  • 3
  • 13
  • 25
-2

Create many labels and place them inside a BoxLayout(Y_AXIS) Container.

pheromix
  • 18,213
  • 29
  • 88
  • 158