create listfield and creat events

Test:Tube:Baby

New Member
here is my code : \[code\]package mypackage;import net.rim.device.api.ui.component.ObjectListField;import net.rim.device.api.ui.container.MainScreen;/** * A class extending the MainScreen class, which provides default standard * behavior for BlackBerry GUI applications. */public final class MyScreen extends MainScreen{ /** * Creates a new MyScreen object */ public MyScreen() { // Set the displayed title of the screen setTitle("My List"); Activity Ac [] = new Activity[5]; //an object of class Activity for(int i=0 ; i<5 ;i++) { Ac = new Activity("nom","descr"); Ac.identifiant = i+1; } ObjectListField list = new ObjectListField(); list.set(Ac); add(list); }}\[/code\]but it does not show me what i want here what it shows me https://mail.google.com/mail/u/0/?ui=2&ik=7653cdbe3d&view=att&th=13da6bb5aa98668e&attid=0.1&disp=safe&realattid=f_her24xbu0&zw
 
Back
Top