Java School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

select items in list using J2ME Rate Topic: -----

#1 geetha_sg  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 12-May 08


Dream Kudos: 0

Share |

select items in list using J2ME

Posted 12 May 2008 - 09:55 PM

Hi all,

i have list in j2me : the list is like this


 homeList = new List("i.Sms", Choice.IMPLICIT);
 homeList.append("New SMS",smsImage);
 homeList.append("CallBack",callBackImage);
 homeList.append("New Contacts",contactsImage );
 homeList.append("Sent", sentImage);
 homeList.append("Settings",settingsImage);
 homeList.append("Help",helpImage);
 homeList.addCommand(CmdExit);
 homeList.addCommand(CmdSelect);
 homeList.setCommandListener(this);
 display.setCurrent(homeList); 




i can select the items in the list only if i use command "Select" in my phone.
i want to select the items using the "center button" in the phone. Is there a way where i can do this.

Please let me know

thanks
Was This Post Helpful? 0
  • +
  • -


#2 vinoth_ragavendarar  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 12-May 08


Dream Kudos: 0

Re: select items in list using J2ME

Posted 25 May 2008 - 09:18 PM

using command Listener we can do it




View Postgeetha_sg, on 12 May, 2008 - 10:55 PM, said:

Hi all,

i have list in j2me : the list is like this


 homeList = new List("i.Sms", Choice.IMPLICIT);
 homeList.append("New SMS",smsImage);
 homeList.append("CallBack",callBackImage);
 homeList.append("New Contacts",contactsImage );
 homeList.append("Sent", sentImage);
 homeList.append("Settings",settingsImage);
 homeList.append("Help",helpImage);
 homeList.addCommand(CmdExit);
 homeList.addCommand(CmdSelect);
 homeList.setCommandListener(this);
 display.setCurrent(homeList); 




i can select the items in the list only if i use command "Select" in my phone.
i want to select the items using the "center button" in the phone. Is there a way where i can do this.

Please let me know

thanks

Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users