2009-07-17 1 views
3

私はブラックベリーでVerticalFieldManagerにスクロールバーを設定するには、このコードを使用していますScrollBarをBlackberryのVerticalFieldManagerに設定するにはどうすればいいですか?

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

labelFieldプロパティが追加され、内容は私のコードが正しいscrolled.Isを取得していないVerticalFieldManagerで表示されますか?.IF誰もが持っていますこれを処理する考えは私を助けてください。

答えて

4
1. Set VerticalFieldManager style to VERTICAL_SCROLL|VERTICAL_SCROLLBAR  
2. Add a new NullField(Field.FOCUSABLE) after LabelField 
1

私のソリューション:

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); 
関連する問題