views:

19

answers:

2

Hi,

I am programming a J2me application. I have the menu with an option of Help.

For this screen I need to present a text that includes some bold words, italics etc...

Which is the best option?

My first solution:

StringItem messageItem = new StringItem("","");
messageItem.setText("lorem ipsum etc etc...");
messageItem.setFont(Font.getFont(Font.FACE_SYSTEM,Font.STYLE_BOLD,Font.SIZE_MEDIUM)); 
append(messageItem);

And then add another new StringItem with another font style:

    StringItem messageItem2 = new StringItem("","");
...
 append(messageItem2);

Is there a better solution?

A: 

One possible solution is using external UI library such as LWUIT.

Please see this: http://www.nextgenmoco.com/2010/02/mobile-web-and-html-inside-javame-with.html

Wonil
I would like a simpler solution, this is a whole framework, thx.
netadictos
A: 

A simpler option: http://www.j2mehtml.com/

Pablo Grisafi
Do you know if the text it produces are readable by screen readers? If it uses Canvas, it is not readable.
netadictos