0
LWUIT 브라우저 예제에서 HttpRequestHandler를 사용하고 있습니다. java.lang.Error : 정적 이니셜 라이저 : java.lang.NullPointerException HttpRequestHandler를 초기화 할 때. 이것은 startApp의 코드입니다. 당신은 네트워크 작업을 수행 할 수 있습니다 전에 공공 무효의 startApp() {lwuit httprequesthandler가 java.lang.Error를 throw합니다. 정적 초기화 : java/lang/NullPointerException
Display.init(this);
try {
InputStream imageStream= Home.class.getResourceAsStream("tipster.res");
//String filesPathAndName = url.getPath();
Resources r = Resources.open(imageStream);
UIManager.getInstance().setThemeProps(r.getTheme("Theme 2"));
} catch (IOException ioe) {
ioe.printStackTrace();
// Do something here.
}
HttpRequestHandler handler = new HttpRequestHandler();
HTMLComponent h = new HTMLComponent(handler);
h.setPage("http://m.google.com");
ffForm.addComponent(h);
}
감사합니다. Ajibola는 저에게 효과적입니다. –