tags:

views:

1299

answers:

1

Hi, I am using this code to set the scrollBar to the VerticalFieldManager in Blackberry

VerticalFieldManager temp2=new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL); LabelField result=new LabelField("Result \n Result\n Result\n Result \n Result\n");
temp2.add(result);

The labelField is added and the contents are displayed by the VerticalFieldManager is not getting scrolled.Is my code is correct?.If anyone have any idea to handle this please help me.

+2  A: 
 1. Set VerticalFieldManager style to VERTICAL_SCROLL|VERTICAL_SCROLLBAR    
 2. Add a new NullField(Field.FOCUSABLE) after LabelField
Max Gontar