DateSpinner

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

DateSpinner

Postby dcf » Thu Sep 25, 2008 5:01 am

Hello.

I am using a DateSpinner object in my swing app. It displays the current date fine, but when the component is changed, the getValue() method only returns the original date - it does not capture the date entered by the user.

I have also tried using the commitEdit() prior to the getValue() method. Any ideas as to what I'm doing wrong?

Thanks.
dcf
 
Posts: 2
Joined: Thu Sep 25, 2008 4:52 am

Re: DateSpinner

Postby JIDE Support » Thu Sep 25, 2008 6:41 am

Do you mean the new date value user typed? Did you try press ENTER? I remembered JSpinner requires an extra enter to commit the value.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am

Re: DateSpinner

Postby dcf » Thu Sep 25, 2008 7:09 am

Yes, I mean after the user types in the change. It does not work after hitting enter - and it does not seem as though it should be necessary from a user's perspective.
dcf
 
Posts: 2
Joined: Thu Sep 25, 2008 4:52 am

Re: DateSpinner

Postby JIDE Support » Thu Sep 25, 2008 7:22 am

Unfortunately that's how Swing JSpinner works. DateSpinner simply extends JSpinner. I don't yet know how to change it. I would think commitEdit should work but you said you tried it already.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37263
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 14 guests