I got the no. of lines properly according to row width & stored it in a Vector & i m doing
int fontHeight = this.getFont().getHeight();
for (int i = 0; i < linesToDraw .size(); i++)
textToDraw = (String)linesToDraw.elementAt(i);
graphics.drawText(textToDraw, xpos, ypos, 0 , width);
ypos += fontHeight;
now its drawing the lines but over the previous one as by default listField.setRowHeight() is taking only one row. If there r 2 rows then I write setRowHeight(getFont().getHeight()*2) in drawListRow() but then it goes in loop.
If I write setRowHeight() while creating ListField then it comes properly but for all rows same row height is set.
I gets the String to draw at Runtime & the row height should be variable for different rows then how can I setRowHeight() with what parameter & in which method ?