Input field for time only!
-
Hi Guys, I need to format an input field to accept only time with this format: "H:mm:s" How can this be done?
-
Hi Guys, I need to format an input field to accept only time with this format: "H:mm:s" How can this be done?
-
Hi Guys, I need to format an input field to accept only time with this format: "H:mm:s" How can this be done?
-
If allowed it's simpler to plug in a control to do the job for you.
Panic, Chaos, Destruction. My work here is done.
-
If allowed it's simpler to plug in a control to do the job for you.
Panic, Chaos, Destruction. My work here is done.
-
True, but I haven't come across any controls that format the date like he wants and perform a validation to check it is a valid date. Then again, I haven't looked.
If at first you don't succeed, you're not Chuck Norris.
fly904 wrote:
I haven't looked
I surface skimmed what's on the Sun site.
Panic, Chaos, Destruction. My work here is done.
-
Hi Guys, I need to format an input field to accept only time with this format: "H:mm:s" How can this be done?
I think JDatePicker supports this format, it certainly has an example in the screenshot on the home page. I'm not sure what it does with the value you enter, though, because Java does not have a Time type. Alternatively, I suppose you could build your own with JFormattedTextField and an InputVerifier or the JGoodies Validation framework.