I am trying to display a static text in the xlet when i recieve an action .
And in actionperformed method i am setting the textcontent of the StaticText field and then destroying the xlet and then calling the next xlet.
but when i am doing this i was navigated to the next xlet but the text was not displayed .
the code looks like this:
MapSc sample2 = new MapSc();
That destroy() method is refered to the present Xlet to destroy it?
Think that if you destroy the first Xlet, you won't be able to execute the code after that instruction. And to execute the destroy method you must reach it through the notifyDestroy method of the XletContext.