Format the input.

How can I format de input from a JTextField?While the user is typing the date, I'd like to format the input, so the end result should be:DD/MM/YYYYHow can I do that?
[194 byte] By [coffee95a] at [2007-11-26 20:02:26]
# 1
Use a JFormattedTextField.
camickra at 2007-7-9 23:01:37 > top of Java-index,Desktop,Core GUI APIs...
# 2
Can you post some code showing how?
coffee95a at 2007-7-9 23:01:37 > top of Java-index,Desktop,Core GUI APIs...
# 3
Read the API and you will find a link to the Swing tutorial showing you how to use the component.
camickra at 2007-7-9 23:01:37 > top of Java-index,Desktop,Core GUI APIs...
# 4
Thanks. I'll read the API.But, If the answer to all questions was "Read the API", there's no reason to a forum to exist...
coffee95a at 2007-7-9 23:01:37 > top of Java-index,Desktop,Core GUI APIs...
# 5

Of course there is.

You should be reading the API first and then when you have a problem you post a question.

We are not here to write code for you. The tutorials have an example. Why should we be wasting time giving you an example when the example is two clicks away.

Learn to do some basic problem solving on you own, because with your attitude you won't be getting much help.

camickra at 2007-7-9 23:01:37 > top of Java-index,Desktop,Core GUI APIs...