我是黑莓开发的新手。我试图将文本放在Button上,但根本无法正常工作。应该有一个简单的解决方案,但我找不到它。这是我正在使用的代码
public class ProgramListView extends VerticalFieldManager{
private int _height;
private int _xPos;
private ButtonField evaluateButton;
//height is used to define each item height
//xPos is used to define each items position on screen
public ProgramListView(int height, int xPos){
this._height = height;
this._xPos = xPos;
evaluateButton = new ButtonField("Evaluate", ButtonField.CONSUME_CLICK){
//put methods in here to change the button's position
};
super.add(evaluateButton);
}
提前致谢。
最佳答案
ButtonField btnPreviewTone;
btnPreviewTone = new ButtonField(ButtonField.HIGHLIGHT_SELECT | ButtonField.CONSUME_CLICK);
btnPreviewTone.setLabel("Preview Ringtone");
我这样做,它为我工作。谢谢