Name the Swing Component with Date and Time

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2008
Posts: 26
Reputation: babusek is an unknown quantity at this point 
Solved Threads: 1
babusek babusek is offline Offline
Light Poster

Name the Swing Component with Date and Time

 
0
  #1
Dec 9th, 2008
HI Folks ,

Any one Here Name The Java Swing Component with "Date and Time Instance"?

Thankq
Sekhar
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: Name the Swing Component with Date and Time

 
0
  #2
Dec 9th, 2008
I would call him 'Roger'. or 'Danny' sounds nice too.
I take it you have something in a GUI presented that displays time and date. unless you believe us to be clairvoyants, you might want to explain a bit more of what it is you're talking about.

if this is a school task, or something like that (which I believe it is) you might also input YOUR idea of what it is, since you're the one supposed to be learning about it. we're not supposed to hand you down the sollutions (God once tried that with the ten commandments, look how that turned out), we are willing though to help you correct and understand your mistakes.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,192
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 485
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Name the Swing Component with Date and Time

 
0
  #3
Dec 9th, 2008
I think he is trying to create calendar object as we know from websites. Unfortunately for you babusek there is no such pre-made component in AWT or Swing. You best chances are to deploy 3 combo boxes and after user selection read values of selected indexes.

PS: I would arrange them in following manner YYYY-MM-DD as this will make easier to get correct count of days in the month. However final arrangement are yours
PS2: You may download already existing solution by others, by I do not think your teacher will approve of it
Last edited by peter_budo; Dec 9th, 2008 at 6:37 am.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 26
Reputation: babusek is an unknown quantity at this point 
Solved Threads: 1
babusek babusek is offline Offline
Light Poster

Re: Name the Swing Component with Date and Time

 
0
  #4
Dec 9th, 2008
Thanks for your Replies ,
Let me Explain the Question Clearly , and it is not an Assignment also.
we have a several swing components like button , textfiled etc....
and i would like to know is there any swing component(as like button , textfield) through which we can select both date and time.
i googled but i didn't get that , and i found that there is no such component exists in any jdk version.
And iam asking u guys tell me is there any swing component or any alternative ways to solve my problem.....
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,391
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 254
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: Name the Swing Component with Date and Time

 
0
  #5
Dec 9th, 2008
And you were already told, no.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC