나는 LWUIT 클래스에 List
을 가지고 있는데, 목록 자체에 Label이 포함되어 있습니다.Midlet은 추상 클래스가 아니며 abstract 메서드를 재정의하지 않습니다. focusLost (com.sun.lwuit.Component)
레이블에 집중하면 목록에 대한 작업을 수행하기 만하면됩니다.
나는 다음과 같은 오류가 클래스 컴파일 할 때 :
익명 미들 릿 $로 2 개 추상적하지 않고 이 com.sun에 추상적 인 방법의 focusLost (com.sun.lwuit.Component)를 대체하지 않습니다. lwuit.events.FocusListener
String s = ("Focus me");
final com.sun.lwuit.Form f = new com.sun.lwuit.Form();
final com.sun.lwuit.List D = new com.sun.lwuit.List();
final com.sun.lwuit.Label l = new com.sun.lwuit.Label(s);
D.addItem(l);
f.addComponent(D);
D.addFocusListener(new com.sun.lwuit.events.FocusListener() {
public void focusGained(com.sun.lwuit.Label l)
{
}
public void focusLost(com.sun.lwuit.Label l)
{
}
});