문제

I am using lwuit for making the j2me mobiles app . And in one form i need to remove a component from a container and then have to add another component , And after doing this i am calling the refreshTheme() and revalidate() function, so that the changes on the form can be reflect on the screen, But sometime calling these function gives an error as "Array index out of bounds: 2>=2" or "Array index out of bounds 0>=0" . This error doesn't come always.
So Are there any solution for this?

도움이 되었습니까?

해결책

This happens when violating the EDT, you should use callSerially() when accessing LWUIT.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top