In j2me, How to resize StringItem according to its content
I am developing Location based J2ME app for my final year project. In that I have created an array of StringItem in [B]Appearance mode Item.BUTTON[/B] which displaying[B]Place name & address[/B] in its Text area,returning this results from Google Places API. The length & content of the place name & address return by Places API is not fixed. That's why sometimes entire Place name & address fits in StringItem's by default size & sometimes it get over limit and only shows place name because of long place name.
I set the StringItem size by this code -
But, it is not giving me desire result.. What should I do... plzz suggest me as soon as possible....