Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command buttons display on screen

 
Priety Sharma
Ranch Hand
Posts: 156
Android Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a midlet with 2 screens.
Screen one is a form which has 2 StringItems and 1 TextField in that sequence.
The StringItems display simple text messages.
The Textfield is a initialized as follows:


I have added 2 Commands to the initial screen. One for exit to close the application. One "Ok" Command to go to the 2nd screen.
One BACK command to the 2nd screen to return to the 1st screen.

I have attached an image of the 1st screen when I have clicked on menu button and the menu is getting displayed.

Since there are only 2 commands on this screen Exit and Ok. I want on command to be displayed at the bottom left corner and one on the bottom right corner insted of the menu getting displayed.
How do I achieve this?

My code is as follows:



Please help.
storenumber.JPG
[Thumbnail for storenumber.JPG]
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can't do that in j2me. I am not very much sure, but it may possible on some mobiles one command may be display on bottom right and one at bottom left , but on some mobile it display as a menu.
 
Priety Sharma
Ranch Hand
Posts: 156
Android Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yeah when I put it on my sony ericsson W810i it showed as 2 different buttons, one at the left bottom corner and one at the right bottom corner.

This is not happening with the emulator.

Thanks!
 
Gopinath Karyadath
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try with

private Command exit = new Command("Exit", Command.EXIT,0);


Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic