private void initMonth() {
DateFormatSymbols dateFormatSymbols = new DateFormatSymbols(locale);
String[] monthNames = dateFormatSymbols.getMonths();
int month = monthChooser.getSelectionIndex();
if (monthChooser.getItemCount() > 0) {
monthChooser.removeAll();
}
for (int i = 0; i < monthNames.length; i++) {
String name = monthNames[i];
if (name.length() > 0) {
monthChooser.add(name);
}
}
if (month < 0) {
month = 0;
} else if (month >= monthChooser.getItemCount()) {
month = monthChooser.getItemCount() - 1;
}
monthChooser.select(month);
}