J2me将字体设置为整个列表
List
类中有一个方法 setFont(int listItem, Font font)
,它可以为列表项设置某种字体。所以我必须循环遍历列表项并设置字体。有什么方法可以将一种字体设置为整个列表吗?
There's a method setFont(int listItem, Font font)
in List
class which sets some font to the list item. So I have to run through the list items and set fonts in a cycle. Is there any method to set one font to the whole list?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MIDP 2 中没有此类方法。
lcdui List API 文档 - 人们可以很容易地发现
setFont(int, Font)
是唯一一种方法这样做There is no such method in MIDP 2.
Full list of available methods is provided in lcdui List API documentation - one can easily find out that
setFont(int, Font)
is the only one way to do that