Code example for SimpleDateFormat

Methods: toLocalizedPattern

0
    sdf = timeFormat;
    setDate(getCellEditorValue()); 
    if (timeFormat instanceof SimpleDateFormat)
    { 
      final SimpleDateFormat dateFormat = (SimpleDateFormat) timeFormat;
      setToolTipText(dateFormat.toLocalizedPattern());
    } 
    else 
    { 
      setToolTipText(null); 
    } 
  } 
 
  public DateFormat getDateFormat()
  { 
    return sdf;
  } 
}