text wrapping in javax.microedition.lcdui.List

I

Igor Vukomanovic

Hello,

I have a problem with text wrapping using the List control. On MIDP 1.0
devices, the text part of the list item is wrapped, but on some MIDP 2.0
devices (6670, 6680) it is cut off if too long. I am aware of MIDP 2.0
List.setFitPolicy(TEXT_WRAP_ON) and if works fine, but I want to make a MIDP
1.0 application which can be used on MIDP 2.0 devices as well.

Any ideas? I have been thinking of run-time detection of MIDP version, but I
cannot compile the midlet using setFitPolicy for MIDP 1.0, and on the other
hand, if I compile for MIDP 2.0 the midlet won't install on MIDP 1.0 devices
(naturally).

NetBeans IDE provides a workaround using preprocessor directives, but in the
end I'd only get two separate installs, which I'd like to avoid at all
costs.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top