开发者

How to add wordwrap for ChoiceElement in the ChoiceGroup while developing GUI using Java ME?

开发者 https://www.devze.com 2022-12-30 11:20 出处:网络
While developing GUI using Java ME- I get the wordwrap for the text being shown on ChoiceGroup, but the text on the Ch开发者_如何学GooiceElement doesn\'t get shifted to the new line if the length of t

While developing GUI using Java ME- I get the wordwrap for the text being shown on ChoiceGroup, but the text on the Ch开发者_如何学GooiceElement doesn't get shifted to the new line if the length of the text exceeds the size of screen. How can we get the wordwrap for the text being shown on the ChoiceElement?


choiceGroup = new ChoiceGroup("choiceGroup", Choice.MULTIPLE);
choiceGroup.append("A long text that needs text wrapping", null);
choiceGroup.setFitPolicy(Choice.TEXT_WRAP_ON);
0

精彩评论

暂无评论...
验证码 换一张
取 消