11-14-2009 08:42 PM
I am brand new to java and blackberry development. Everything I have done I've searched and found my answers but for some reason I cant find anything adding items to a fieldList. I think Im suppose to use drawListRow but I can not get it set up correctly. I have made the list and added it to the screen with:
ListField listField = new ListField(20);
I try to use drawListRow but I cant figure out the syntax. Thanks for your help.
11-15-2009 10:27 PM
Have you tried over here: Java Development
Happy to have you here!
11-16-2009 02:01 AM
Welcome to BlackBerry support community forums. We're glad to have you in the community.
Have fun and enjoy your stay!
If your query is resolved then please click on “Accept as Solution”
Click on the LIKE on the bottom right if the post deserves credit
11-16-2009 07:37 AM
to draw the listfield you use the listrowcallback, seems you have this figured out correctly.
You have to implement the methods of the interface yourself.
drawListRow is similar to other paint methods, you have a low level access to graphics (which represents the area you can paint on). see the Graphics class for an overview of methods.
To get you started you can use drawText(string,x,y), with x = 5, y from the drawListRow parameters and string as the textual representation of your object.
The knowledge base has some samples of listfield usage: