@Test public void testDateFormatTimeZone() throws Exception { Locale.setDefault(Locale.ENGLISH); DateTimePickerCellEditor editor = new DateTimePickerCellEditor(DATE_FORMAT, TIME_FORMAT); DateFormat[] formats = editor.getFormats(); assertEquals(1, formats.length); assertSame(DATE_FORMAT, formats[0]); assertEquals(DATE_FORMAT, formats[0]); assertEquals(TimeZone.getTimeZone("UTC"), formats[0].getTimeZone()); assertSame(TIME_FORMAT, editor.getTimeFormat()); assertEquals(TimeZone.getTimeZone("UTC"), editor.getTimeFormat().getTimeZone()); }
public DateFormat getTimeFormat() { return getEditor().getTimeFormat(); }
DateTimePickerCellEditor extends DatePickerCellEditor { public DateFormat getTimeFormat() { return getEditor().getTimeFormat(); } }
DateTimePickerCellEditor extends DatePickerCellEditor { public DateFormat getTimeFormat() { return getEditor().getTimeFormat(); } DateTimePickerCellEditor(DateFormat dateFormat, DateFormat timeFormat); }
DateTimePickerCellEditor extends DatePickerCellEditor { public DateFormat getTimeFormat() { return getEditor().getTimeFormat(); } DateTimePickerCellEditor(DateFormat dateFormat, DateFormat timeFormat); void setTimeFormat(DateFormat timeFormat); DateFormat getTimeFormat(); @Override Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column); static void main(String[] args); }
DateTimePickerCellEditor extends DatePickerCellEditor { public DateFormat getTimeFormat() { return getEditor().getTimeFormat(); } DateTimePickerCellEditor(DateFormat dateFormat, DateFormat timeFormat); void setTimeFormat(DateFormat timeFormat); DateFormat getTimeFormat(); @Override Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column); static void main(String[] args);  }