How to set a ScrollBar to the VerticalFieldManager in Blackberry?

后端 未结 2 1293
没有蜡笔的小新
没有蜡笔的小新 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);
    
    0 讨论(0)
  • 2020-12-16 08:37
     1. Set VerticalFieldManager style to VERTICAL_SCROLL|VERTICAL_SCROLLBAR    
     2. Add a new NullField(Field.FOCUSABLE) after LabelField
    
    0 讨论(0)
提交回复
热议问题