Discussion Board

Results 1 to 3 of 3
  1. #1
    hi all
    i am a beginner in j2me . i am trying to use implicit type of list in my application. normally we will use SELECT_COMMAND if we r going to do anything by clicking the item on the list(remember this is implicit type of list not multiple). Is this the only option that we have to use with implicit type of list or can we use any user defined commands?.

    Waiting for ur reply

    thanks & regards

    blue quanta

  2. #2
    Super Contributor shmoove's Avatar
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Sure you can use your own Commands. A List is a Displayable, and just like any other Displayable you can use addCommand() to add your own Commands to it. In the commandAction() you can handle those in the usual way (and you can use List.getSelectedIndex() to find what item was selected).

    shmoove

  3. #3
    Hi,

    Thanks for ur help. I have tested for this. Now it is working.

    regards
    Rathika

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved