tag:blogger.com,1999:blog-6238334836066228162.post1760352246120652224..comments2013-11-27T01:14:11.152-08:00Comments on Learning LWUIT: LWUIT reloadForm()Anonymoushttp://www.blogger.com/profile/10153289552585644231noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6238334836066228162.post-78460122057112617042013-11-27T01:14:11.152-08:002013-11-27T01:14:11.152-08:00I had the same issue recently. my solution was to ...I had the same issue recently. my solution was to fiirst remove all the components "newForm.removeAll();" and to remove all the commands "newForm.removeAllCommands();" then rebuild the newForm<br /><br />e.g. <br />// myForm <br />public void myForm(){<br /><br />Form newForm = new Form();<br />List newList = new List();<br />Command newCommand = new Command("Back");<br />newForm.addComponent(newList);<br />newForm.addCommand(newCommand);<br />newForm.addCommandListener(this);<br />newForm.show();<br />}<br /><br />//this is to refresh myForm<br />{<br />newForm.removeAll(); //removes all componets<br />newForm.removeAllCommands9(); // removes all commands<br />myForm(); // rebuilds the form<br />}<br />Anonymoushttps://www.blogger.com/profile/05914462083557140289noreply@blogger.com