| | |
Name the Swing Component with Date and Time
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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.
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.
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
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
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Oct 2008
Posts: 26
Reputation:
Solved Threads: 1
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.....
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.....
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
----------------------------------------------
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
![]() |
Similar Threads
- Help, Help with Traffic Simulation program (Java)
- Help with automatic update problem and more (Viruses, Spyware and other Nasties)
- trojans...now nothing opens and I get a paint can't open error (Viruses, Spyware and other Nasties)
- Help me out with shopping n adding to cart. (Java)
- date n time TO BE DISPLAYED AT THE LEFT HAND CORNER . (Java)
- Assignment on java 2 j2sdk1.4.2_04 (Java)
Other Threads in the Java Forum
- Previous Thread: protocol programme.
- Next Thread: How to Add Container to a Container
Views: 688 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Java
3d @param affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth byte c# chat class classes click client code color compare component corrupted database detection draw eclipse error event exception file fractal game givemetehcodez graphics gui guitesting helpwithhomework html ide image input integer j2me java java.xls javaprojects jmf jni jpanel julia keytool linux list loop map method methods mobile netbeans newbie number object oracle pong print problem producer program programming project projectideas read recursion reflection replaysolutions rim scanner screen server set size sms socket sort sql string swing terminal test threads time transfer tree web windows






