use of com.github.lgooddatepicker.components.CalendarPanel in project DevKits by qmjy.
the class AppStarter method createCalendarPane.
private Container createCalendarPane() {
DatePickerSettings datePickerSettings = new DatePickerSettings();
datePickerSettings.setWeekNumbersDisplayed(true, true);
// int newHeight = (int) (datePickerSettings.getSizeDatePanelMinimumHeight() * 1.6);
// int newWidth = (int) (datePickerSettings.getSizeDatePanelMinimumWidth() * 1.6);
// datePickerSettings.setSizeDatePanelMinimumHeight(newHeight);
// datePickerSettings.setSizeDatePanelMinimumWidth(newWidth);
CalendarPanel calendarPanel = new CalendarPanel(datePickerSettings);
calendarPanel.setSelectedDate(LocalDate.now());
calendarPanel.setBorder(new LineBorder(Color.lightGray));
return calendarPanel;
}
Aggregations