我们可以将html css应用于LWUIT Text Area

时间:2012-08-11 07:01:55

标签: html java-me lwuit

我使用过TextArea,但我无法减少字体。 这是我的代码:

TextArea big = new TextArea(detailNews.getDescription());
Font createSystemFont = Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN,                        Font.SIZE_SMALL); 
big.getStyle().setFont(createSystemFont); 
big.setEditable(false);,

如何减少字体?

我想将html css应用于LWUIT Text Area以减少我的文本字体。那可能吗?

1 个答案:

答案 0 :(得分:1)

使用:

big.getUnselectedStyle().setFont(createSystemFont); 
big.getSelectedStyle().setFont(createSystemFont); 

您将获得可以合理使用的最小字体。否则,您将需要使用不推荐的位图字体。