This discussion is archived
1 Reply Latest reply: Feb 13, 2013 4:31 AM by UdayaShankaraGandhi RSS

datepicker not working in jtable

990328 Newbie
Currently Being Moderated
Hi ,

I have used DatePickerCellEditor for a cell in Jtable. When I select a date from the popup calender, the date with "dow mon dd hh:mm:ss zzz yyyy" format is displayed. I want to change it to date format (yyyy-MMM-dd). I did try doing by

DateFormat formatter ;

formatter = new SimpleDateFormat("yyyy-MMM-dd");

DatePickerCellEditor datePicker = new DatePickerCellEditor(formatter);

TableColumn po_date = tableModel.getColumnModel().getColumn(1);


But it didn't work. Can anyone help me with this one?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points