| | |
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
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary block bluetooth character chat class client code component consumer csv database desktop eclipse error fractal ftp game givemetehcodez graphics gui html ide image input integer j2me japplet java javaarraylist javac javaee javaprojects jmf jni jpanel julia linked linux list loop mac map method methods mobile netbeans newbie number objects online oriented panel print printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner screen se server set size sms sort sql string swing template test threads time title tree tutorial-sample ubuntu update windows working






