가 나는 정의 내가 editfield에서 단어의 전체 라인을 입력하면, 그것은 원인 및 오류합니다 블랙 베리 editfield 오류
public class Custom_EditField extends EditField {
int width, row;
Custom_EditField(long style, int width, int row) {
super(style);
this.width = width;
this.row = row;
}
protected void layout(int width, int height) {
width = this.width;
height = this.row;
super.layout(width, Font.getDefault().getHeight() * row);
super.setExtent(width, Font.getDefault().getHeight() * row);
}
public int getPreferredHeight() {
return Font.getDefault().getHeight() * row;
}
public int getPreferredWidth() {
return width;
}
public void paint(Graphics graphics) {
super.paint(graphics);
graphics.setBackgroundColor(Color.GRAY);
graphics.clear();
graphics.setColor(Color.BLACK);
int labelWidth = getFont().getAdvance(getLabel());
graphics.drawRect(labelWidth, 0, getWidth() - labelWidth, getHeight());
graphics.drawText(this.getText(), 0, 0);
}
}
을 editfield했다. 자동 차선으로 갈 수없는 것 같습니다.
는 "이 오류가 발생합니다을"당신은 당신이 얻을 수있는 오류를 설명 할 수 있습니까? 또한 [SSCCE] (http://pscode.org/sscce.html)가 도움이 될 것입니다. – Howard
'0 : 21 : 21.476 : 앱 오류 104 0 : 21 : 21.478 : 캐치되지 않음 : StackOverflowError' –