×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Question Using Spinner in LWUIT??

    What is the use of DAY here ???
    I followed this link : http://lwuit.blogspot.com/2009/12/sp...and-round.html

    Spinner dateSpinner = Spinner.createDate(System.currentTimeMillis() - 1000 * DAY,
    System.currentTimeMillis() + 1000 * DAY, System.currentTimeMillis(),
    '-', Spinner.DATE_FORMAT_MM_DD_YYYY);
    And i could not understand it .

    Please Reply.
    Regards
    Rajan Verma

  2. #2
    Registered User
    Join Date
    Feb 2013
    Location
    Madrid
    Posts
    84

    Re: Using Spinner in LWUIT??

    The DAY variable has the following value private static final long DAY = 24 * 60 * 60 * 1000;

    It helps to calculate the milliseconds that a day have, to work with milleseconds in the Spinner

Similar Threads

  1. Can I create a circular spinner in j2me?
    By Rupa in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2010-12-09, 15:17
  2. Replies: 2
    Last Post: 2010-06-23, 13:50
  3. Replies: 0
    Last Post: 2010-04-20, 12:25
  4. Replies: 3
    Last Post: 2010-04-10, 19:10
  5. OutOfMemoryError using transitions in LWUIT
    By angusrose in forum Mobile Java Tools & SDKs
    Replies: 6
    Last Post: 2009-05-13, 10:49

Posting Permissions

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