This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

add 2 and more Commands to a Form  RSS feed

 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!