Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSpinner as a JTable Cell editor

807569Aug 4 2006
I have a Spinner with a Spinner date Model.

it is the cell editor for a few columns on a Table.


the Spinner is a custom Spinner

this.setEditor(new Spinner(this,"MM/dd/yyyy"));



i have used the above code to set a new editor, If i am correnct
the above code should create a cus`tom editor with the given pattern.

if i am wrong please let me know .

assuming that is correnct.


another question is once the focus is out of a cell which was edited
the display of the data changes . when the usere double clicks onthe cell and the editor shows up the data returns to the correct format.

what do i have to do to retain the format once focus is out of a previously edited cell

any help is appreciated


thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2006
Added on Aug 4 2006
0 comments
253 views