Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

add 2 and more Commands to a Form

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am quite new to j2me.
nowadays reading and implementing through Prentice Hall's Book Core J2ME Technology and MIDlets here http://www.corej2me.com/ which I find very useful. Actually have the intention to take the exam on Friday.
ok, simple Q. i wonder what happens when we add more than one Commands to a Form at the same time. say EXIT HELP SCREEN etc..
i tried and it is not intuitive as i have expected. using J2ME Wireless Toolkit from Sun.
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, since Commands are part of the higher-api's the actual implementation of these commands are device specific. But, in most cases, you will find that it will create a menu of a sort. Meaning usually Cell Phones will have two options for the Screen, the left and right buttons, when you get a third, the second and third are added to a menu that pops up when you select the right button.
the add() method has a parameter for "importance" which the device can use to determine which Commands you see on the Screen and which get delegated to the menu.
Mark
 
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
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!