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 / First Aid / April 2005

Tip: Looking for answers? Try searching our database.

J2ME, why can't register CommandListener () from Canvas?

Thread view: 
Boki - 31 Mar 2005 10:39 GMT
Hi All,

          Why can't register CommandListener () from Canvas?

MyGUI extends Canvas
{
...
myMIDlet.myForm.setCommandListener(myMIDlet.myForm);
...
}

Error output:
setCommandListener in javax.microedition.lcdui.Displayable cannot be applied
to javax.microedition.lcdui.From

----------
How can I change my CommandListener from MyGUI.java to myMIDlet.java

Thank you very much for your help.

Best regards,
Boki.
Darryl Pierce - 31 Mar 2005 13:34 GMT
> Hi All,
>
[quoted text clipped - 10 lines]
> setCommandListener in javax.microedition.lcdui.Displayable cannot be applied
> to javax.microedition.lcdui.From

Your Form object obviously does not implement the CommandListener interface.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard

Boki - 31 Mar 2005 15:46 GMT
Yes, I did......@@

"Darryl Pierce" <mcpierce@gmail.com>
???????:G4S2e.7003$vK6.398@bignews3.bellsouth.net...
>> Hi All,
>>
[quoted text clipped - 13 lines]
> Your Form object obviously does not implement the CommandListener
> interface.
Darryl Pierce - 01 Apr 2005 13:29 GMT
> Yes, I did......@@

Well, honestly, it's hard to tell since you're not cutting and pasting
the real text but typing it in.

>>>Error output:
>>>setCommandListener in javax.microedition.lcdui.Displayable cannot be
>>>applied to javax.microedition.lcdui.From

Post the real text and we can help you.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard



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



©2008 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.