« Return to Thread: NetBeans MIDP Development Quick Start Guide

Re: NetBeans MIDP Development Quick Start Guide

by Cyril Cheneson :: Rate this Message:

Reply to Author | View in Thread

On Wed, May 7, 2008 at 4:44 PM, rafikindia@...
<rafikindia@...> wrote:

> Hy,
>
>  I am J2ME beginner, i don't understand where is the main, in a J2ME program.
>
>  Sorry for my english, i'm from Paris.
>
>  ----
>  Submitted via the contact form at: http://www.netbeans.info/appl2//index.php
>  Referer page: http://www.netbeans.org/kb/60/mobility/quickstart.html
>
>
>

Hi,

I dont do much J2me development (unfortunately) but I ll try to answer
your questions.

There is no main in a J2me program. A J2me program is a subclass of a
MIDlet class. (A MIDlet is what a Servlet is in a web application).
When subclassing, you will have to implement the abstracted methods
from the MIDlet class.
Those methods are startApp(), pauseApp(), destroyApp()

So when you start a j2me app on your mobile, an instance of the MIDlet
is created and the startApp() method is run.

Look up for some tutorials on the web or on netbeans.org. They are
plenty of them. For example:\
http://today.java.net/pub/a/today/2005/02/09/j2me1.html


Bonne chance.

\C

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: NetBeans MIDP Development Quick Start Guide