×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    13

    How to arrange the Commands into specific order in j2me midp 2.0?

    Hi ALL,

    I have 6 commands in my Form.for example, submit,edit,save,cancel,back,logout.I want to keep the same order which i mentioned above.How i do it...

    Please reply soon if possible....

    Thanks & Regards, P.SARAVANAN

  2. #2
    Nokia Developer Champion
    Join Date
    Aug 2009
    Posts
    18

    Re: How to arrange the Commands into specific order in j2me midp 2.0?

    Set the third parameter in Command constructor for each of you commands.

    Command example = new Command("example", Command.OK, 0) ;
    Command submit = new Command("submit", Command.OK, 1) ;
    Command edit = new Command("edit", Command.OK, 2) ;
    etc..

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    13

    Re: How to arrange the Commands into specific order in j2me midp 2.0?

    YES, It's working good.but i have mixed some different types of command like OK,CANCEL,BACK,EXIT,SCREEN....

    For Example,

    exit = new Command("Exit", Command.EXIT, 5);
    _123=new Command("123",Command.BACK,4);
    ABC=new Command("ABC",Command.CANCEL,3);
    sample1=new Command("Sample1",Command.SCREEN,1);
    sample2=new Command("Sample2",Command.OK,2);

    The Order i need is :Sample1,Sample2,ABC,Exit. But it Display like this Sample1,Sample2,Exit,ABC are right side and 123 is placed in left side button.

    Here, I also have one problem while adding one more command(Edit_Cell) using like below.... and also i need to display in the first place before Sample1.But it displayed in End of all the commands on right hand side.

    I have added this new Command(Edit_Cell) in another src file constructor and call that constructor in below of my above code(adding commands).

    My Final Order i need is : Edit_Cell,Sample1,Sample2,ABC,Exit, on right hand side and _123 on left hand side....

    Please Guide me to get this issue....

    Please Reply as soon as possible.


    Thanks & Regards,
    P.SARAVANAN

  4. #4
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: How to arrange the Commands into specific order in j2me midp 2.0?

    the commands are placed so that the order and position match as best as possible the order the user would expect from his experience on the phone.
    in your example, there will always be only one command on the left side button, and it will be a BACK command when one is available. The others will be placed on the right button by type, priority and possibly order of insertion.
    it would probably be easier to force the order if you used BACK for your left button and OK for all the others

  5. #5
    Registered User
    Join Date
    Dec 2010
    Posts
    13

    Re: How to arrange the Commands into specific order in j2me midp 2.0?

    thanks for your reply. I have more commands on left hand side.so, once i clicked left soft button, it will show the list of commands for user selection.Now i want to cancel the options and return back to previous step.How i do it?

  6. #6
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: How to arrange the Commands into specific order in j2me midp 2.0?

    AMS will be opening the "cancel" command for you on the RSK as soon as you will open the option menu, isn't happening that?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. j2me jad file Name in order to download
    By Nikolaos in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2008-07-08, 12:09
  2. Any vendor specific AT commands for Nokia phones
    By jasthy in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2006-12-07, 10:08
  3. Replies: 1
    Last Post: 2006-07-05, 18:05
  4. AT commands in order to create "Accessory Menus", is it possible?
    By Ben_2005 in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-11-30, 15:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×