Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

List in J2ME

Thread view: 
Natasha - 21 Feb 2006 10:47 GMT
Hi All,

Is it possible to have keyPressed() in J2ME List? Is commandAction() is
the only Listener method?
Darryl L. Pierce - 21 Feb 2006 14:38 GMT
> Is it possible to have keyPressed() in J2ME List?

No. keyPressed() is a method of javax.microedition.lcdui.Canvas.
javax.microedition.lcdui.List does *not* extend Canvas in the
specification, so how could it provide Canvas's methods?

> Is commandAction() is
> the only Listener method?

commandAction is the only method invoked by a Displayable object when a
Command has been fired, yes.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"McVeigh's lawyer got him the death penalty, which, quite frankly,
I could have done." - Jon Stewart

Natasha - 22 Feb 2006 05:13 GMT
Thanks for the reply.... My problem is that when the user presses the
Last item of the List and still presses the down arrow, the first item
has to be selected? I s there any solution?
Paul Hamaker - 22 Feb 2006 08:45 GMT
This behavior is up to the device, only way I can think of is mimicking
a list on a Canvas, but whether that's worth the effort ?

--------------------
Paul Hamaker, SEMM, teaching ICT since 1987
http://javalessons.com
Darryl L. Pierce - 22 Feb 2006 14:01 GMT
> Thanks for the reply.... My problem is that when the user presses the
> Last item of the List and still presses the down arrow, the first item
> has to be selected? I s there any solution?

Not really, no. Why is circumnavigating the list a problem?

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Homepage: http://mcpierce.multiply.com/
"McVeigh's lawyer got him the death penalty, which, quite frankly,
I could have done." - Jon Stewart

Natasha - 22 Feb 2006 14:10 GMT
Thank You so much!!!!!!!!!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.