years[i] = new Integer(calendar.get(Calendar.YEAR) - i);
}
yearBox = new JComboBox(years);
yearBox.setEditable(true);
MaskFormatter formatter = null;
try {
formatter = new MaskFormatter("###/##:##:##");
formatter.setPlaceholderCharacter('0');
} catch (ParseException e) {
logger.error("Parse error in creating time field", e);
}
timeField = new TimeTextField(formatter, calendar.get(Calendar.YEAR));