How to create a custom Label field that works similar to defau开发者_高级运维lt 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.
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));
精彩评论