1 Reply Latest reply: Feb 13, 2013 6:31 AM by UdayaShankaraGandhi RSS

    datepicker not working in jtable

    990328
      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);

      po_date.setCellEditor(datePicker);

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