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 / March 2005

Tip: Looking for answers? Try searching our database.

J2ME, Can't call notifyDestroyed() from Canvas...

Thread view: 
boki - 31 Mar 2005 07:31 GMT
Hi, All,
       Can I call notifyDestroyed() from Canvas...?

XXX extends Canvas()
{
...
MIDlet.notifyDestroyed();
...
}

Erorr Output:
-----------------------
non-static method notifyDestroyed() cannot be referenced from a static context
-----------------------

If I want to call notifyDestroyed() from Canvas, how should I do ?

Thank you very much.

Best regards,
Boki.
Tor Iver Wilhelmsen - 31 Mar 2005 07:58 GMT
> If I want to call notifyDestroyed() from Canvas, how should I do ?

Call it from an instance (non-static) method.
Boki - 31 Mar 2005 10:40 GMT
Got it!

Thank you very much!

Best regards,
Boki.

"Tor Iver Wilhelmsen" <tor.iver.wilhelmsen@broadpark.no>
???????:usm2cb8hy.fsf@broadpark.no...

>> If I want to call notifyDestroyed() from Canvas, how should I do ?
>
> Call it from an instance (non-static) method.
Darryl Pierce - 31 Mar 2005 13:32 GMT
> Hi, All,
>         Can I call notifyDestroyed() from Canvas...?

You can call it from *anywhere*, provided you have a reference to the
*active* MIDlet.

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.