layout - Codename one label text wraping -
is there way how wrap text in label
multiple rows (using boxlayout y container)? always, text overflow hidden. long text should split 2 or more lines.
i working textarea
component , textarea.row
set 2 or more. width little bit tricky.
how can set label
or textarea
width or height?
the label single line label solution based on text area should work fine if doesn't suggest making sure added on edt (you can activate edt violation detection in simulator menu) , if added component after form shown should use revalidate(). there no need define row count.
just completeness here how work:
textarea lbl = new textarea("my long string should break lines because really really long , won't end"); lbl.seteditable(false); lbl.setfocusable(false); lbl.setuiid("label");
Comments
Post a Comment