Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Java
public SimpleListScreen()
{
super(Manager.NO_VERTICAL_SCROLL);
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");
}

I used above code to add a simple list in a blackberry eclipse project. But An error is occurred in Manager
(Manager mainManager = getMainManager();) and NO_VERTICAL_SCROLL in super(Manager.NO_VERTICAL_SCROLL);.
I don't know why there is no key word called NO_VERTICAL_SCROLL. If anybody knows the reason please let to me know. Thanks.
Posted
Updated 4-Aug-12 20:06pm
v2

1 solution

What object are you extending?

The extended Object will not support the value Manager.NO_VERTICAL_SCROLL
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900