Would you like to tell us how we are doing?

You bet No thanks

Sorry about the red box, but we really need you to update your browser. Read this excellent article if you're wondering why we are no longer supporting this browser version. Go to Browse Happy for browser suggestions and how to update.

List: simple

Use a simple list to display a list of items as text.



Supported since

BlackBerry Java SDK 6.0

More information

For more information about simple lists, see the UI Guidelines.


This screen shows a simple list.

import net.rim.device.api.ui.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.component.table.*;

public class SimpleListDemo extends UiApplication
    public static void main(String[] args)
        SimpleListDemo theApp = new SimpleListDemo();       
    public SimpleListDemo()
        pushScreen(new SimpleListScreen());
    private static final class SimpleListScreen extends MainScreen
        public SimpleListScreen()
            setTitle("Simple List Demo");
            add(new LabelField("My list", LabelField.FIELD_HCENTER));
            add(new SeparatorField());
            Manager mainManager = getMainManager();
            SimpleList listField = new SimpleList(mainManager);
            listField.add("Item 1");
            listField.add("Item 2");
            listField.add("Item 3");