Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-05-2008, 10:04 AM
Member
 
Join Date: Feb 2008
Location: South Africa
Posts: 9
gibsonsydsa is on a distinguished road
Send a message via MSN to gibsonsydsa
DateField in format : HH:mm:ss:ms
Hi Guys,

Im busy working on a project where I need to capture the current time as soon as a user presses a button, the problem is that in MIDP 2.0 the DateField only accepts time to the minute as soon as you click "save" it displays time in this format : 12:01:00. I need a custom control that allows me to set the time in the following format : 12:01:10:54 (Hours: Minutes: Seconds: Milliseconds)...

Is this at all possible as I have done extended searches on both google and other forums for a solution without any success.

Gib
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-11-2008, 10:18 AM
Member
 
Join Date: Feb 2008
Location: South Africa
Posts: 9
gibsonsydsa is on a distinguished road
Send a message via MSN to gibsonsydsa
Is there seriously no-one out there that can help me with this poblem?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 03-06-2008, 02:59 PM
Member
 
Join Date: Mar 2008
Posts: 5
sk_shadul is on a distinguished road
Hi,

It is not possible to do what you want with the DateField class.

Regards,
sk_shadul
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 03-10-2008, 08:32 AM
Member
 
Join Date: Feb 2008
Location: South Africa
Posts: 9
gibsonsydsa is on a distinguished road
Send a message via MSN to gibsonsydsa
Yip thanks I realised that it was impossible to do so so I drew on a canvas.It works I had to do it in a hurry so don't hesitate to revise the code for optimization if you need to, im sure there is room for improvement.

The code is attached as timer.zip
Attached Files
File Type: zip TimeCanvas.zip (2.2 KB, 2 views)
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 03-10-2008, 08:46 AM
Member
 
Join Date: Feb 2008
Location: South Africa
Posts: 9
gibsonsydsa is on a distinguished road
Send a message via MSN to gibsonsydsa
Sorry for the double post I forgot to mention that I only had to go up to HH:MM:SS in the end its obviously possible to extend it to milliseconds if you need to.

Cheers,
Gib
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to format the date in particular pattern Java Tip java.text 0 04-04-2008 03:35 PM
Timestamp in SQL format Java Tip Java Tips 0 02-10-2008 12:37 PM
Code format Eric XML 1 07-06-2007 08:44 AM
Code format Eric XML 1 07-06-2007 08:42 AM
show a RTF FORMAT Jack Advanced Java 2 07-04-2007 04:37 AM


All times are GMT +3. The time now is 09:20 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org