DatePicker question

View: New views
3 Messages — Rating Filter:   Alert me  

DatePicker question

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a JXDatePicker with a user specified format set.

Now when a user puts in eg 09/10/1984 when the datepicker's format is yyyy/MM/dd

the datepicker changes this to something completely different how can i solve this.

i'd rather have it pop up and say wrong dateformat or something like that.

the datepickers already have a listener attached


thanks
[Message sent by forum member 'kheiremans' (kheiremans)]

http://forums.java.net/jive/thread.jspa?messageID=285563

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: DatePicker question

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

try setLenient(false) on your DateFormat.
[Message sent by forum member 'rturnbull' (rturnbull)]

http://forums.java.net/jive/thread.jspa?messageID=285565

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: DatePicker question

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thank you very very much!
[Message sent by forum member 'kheiremans' (kheiremans)]

http://forums.java.net/jive/thread.jspa?messageID=285569

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...

LightInTheBox - Buy quality products at wholesale price