Is there any method or constraint to be put on textfield, So that user can put date and time in text field
Format should be DD/MM/YY HH:MN
No. Currently we only have the calendar and Spinner class.
This is a problematic area which I hope to improve on for a future revision.
Ok. So is there any feature in textfield so that , after entering 2 digits, we automatically put a "/" so that next 2 digits will be for month??
Yep. You can use data change listener to track text field changes and move the cursor/setText to whatever you like. You can also derive text field and override some methods such as insertChar etc.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.