On this thread I've figured out how to add a JXDatePicker in to a JXTable (or JTable) cell. But I've a small issue now.
DatePicker pops up and works fine according to my need. But I can't change the display format of the date in the cell. It shows in the following long format.
Eg: Wed Aug 01 00:00:00 IST 2012
But I need it in dd-MMM-yyyy
format.
I've tried changing the DatePickerCellEditor
's format. It partly works. Which means, now it shows the date according to the set format when that cell is in focus. But when I focus on some other cell, it again goes back to the above format.
May be the fault is not with the DatePickerCellEditor
, may be it has to do something with the tableModel
. But can't figure it out. Any help is appreciated..
Thanks!