Blackberry Custom LabelField

1.3k Views Asked by At

How to create a custom Label field that works similar to default LabelField issues : it should be able to take large texts and should be able to display them in different lines if the length exceeds the screen width.

1

There are 1 best solutions below

6
On

The existing LabelField class already displays text on a different line if the length exceeds the screen width. To increase the font size do something like this:

label.setFont(Font.getDefault().derive(Font.PLAIN, 18, Ui.UNITS_pt));