This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

BACK automatically set?  RSS feed

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! Forgive me if I've made a silly mistake here, I'm new to j2me. This class, InterLevelScreen, is supposed to start a GameScreen or go back if the "cancel" button is pressed. My problem is that when the "cancel" button gets added the CommandType is automatically set to back so instead of opening a GameScreen it goes back. I can't figure out why this is happening - if I remove the "cancel" button it works as it normally should. Below is my code, with a few useful comments in bold. Any help at all would be greatly appreciated! Thank you!


[ February 18, 2007: Message edited by: Brandi Love ]
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What phone model are you using?

Also, I noted you did not set the commandstatelistener method. Try that out, it could be the problem.
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say the problem lies elsewhere.. you seem to be using a sort of screen manager system in your application. Can you check your classes and see where the process method is being called?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!