×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    10

    DateTime Picker in MIDP

    Hi Pals,

    I am using a j2me application and i am in need of a datetime picker is it possible. if possible plz help me. thanks in advance

    regards,
    Bapitha .N.C

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: DateTime Picker in MIDP

    Hello Bapitha .N.C,

    couple of examples: to get started:

    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.util.*;

    public class DateTest extends MIDlet
    {

    Display d;
    Form f;
    Date today;
    DateField df;

    public void startApp ()

    {

    d = Display.getDisplay(this);;
    f = new Form("Date now");

    today = new Date();

    df = new DateField("Date:", DateField.DATE);

    df.setDate(today);
    f.append(df);
    d.setCurrent(f);

    }

    public void pauseApp () {}

    public void destroyApp (boolean destroy){}

    }

    For a more detailed example:

    http://www.java2s.com/Code/Java/J2ME/DateField.htm

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    10

    Re: DateTime Picker in MIDP

    Hi Pal,

    Thankx a lot for the reply. it worked.

    regards,
    Bapitha .N.C

Similar Threads

  1. Updated MIDP Documents :: Thank you Nokia!!
    By balagopalks in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 1
    Last Post: 2006-11-07, 07:14
  2. createImage on Nokia Series 40 MIDP Concept SDK Beta 0.3
    By GerardMason in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-09-30, 10:00
  3. Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working
    By mattbee in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-10, 11:43
  4. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05
  5. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×