블랙 베리 개발에 새로운 있습니다. 임 버튼에 텍스트를 넣으려고하지만 그것은 전혀 작동하지 않습니다. 쉬운 해결책이 있어야하지만 찾을 수가 없습니다. 사용중인 코드는 다음과 같습니다.buttonField 블랙 베리에 텍스트 레이블을 표시하는 방법
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);
}
미리 감사드립니다.
나는 당신이 오버라이드 된 기능을 제거하고 그게 작동하는지 아닌지 알려주는 버튼 텍스트 plz를 보여주기 위해 문제를 야기하는 오버라이드 레이아웃과 페인트가 있다고 생각한다. 감사합니다. – SALMAN
동일한 메소드의 수퍼 클래스 버전을 호출하거나 매개 변수를 수정하지 않거나 다른 작업을 호출하려는 경우 메소드 (예 :'layout()'및'paint()')를 무시하는 것이 포인트가 아닙니다. [Java method overriding here here] (http://www.tutorialspot.com/java/java_overriding.htm) – Nate
이미 메소드를 제거했지만 여전히 레이블은 없습니다. 그 방법은 나중에 올바른 장소에 버튼을 넣기 위해 사용될 것입니다 – madcoderz