i have a MidLet which needs to display the next screen when a command button is clicked. the problem i am facing is that the next scren too has command buttons and a class can have only one commandAction method. so how do i implement functionality for command buttons on multiple screens with the same name? plz help.
Does "next screen" mean a different displayable (form or canvas)? If so, your CommandAction method can test for that, because the displayable is an argument to the method. (Or you could nominate a different object to be the command listener for your next screen.)
If you're using the same displayable, and changing its contents to make it the "next screen", then you need to have a flag or state code or something similar as an instance variable, and test that in your CommandAction method.
Chihuahua - Ajax-powered online word puzzle, <a href="http://chi.lexigame.com" target="_blank" rel="nofollow">http://chi.lexigame.com</a> <br />Letterbox Word Game Online, <a href="http://letterbox.lexigame.com" target="_blank" rel="nofollow">http://letterbox.lexigame.com</a> <br />Lexi Word Game for Java-enabled phones, <a href="http://www.lexigame.com" target="_blank" rel="nofollow">http://www.lexigame.com</a>
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads