• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Command buttons display on screen  RSS feed

 
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]
 
Ranch Hand
Posts: 633
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!
 
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
 
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!