How to set a ScrollBar to the VerticalFieldManager in Blackberry?

后端 未结 2 1323
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 07:59

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

   VerticalFieldManager temp2=new VerticalFieldManager(VerticalFieldManag         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 08:34

    My solution:

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

提交回复
热议问题