Search in sources :

Example 1 with CalendarPanel

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;
}
Also used : CalendarPanel(com.github.lgooddatepicker.components.CalendarPanel) DatePickerSettings(com.github.lgooddatepicker.components.DatePickerSettings) LineBorder(javax.swing.border.LineBorder)

Aggregations

CalendarPanel (com.github.lgooddatepicker.components.CalendarPanel)1 DatePickerSettings (com.github.lgooddatepicker.components.DatePickerSettings)1 LineBorder (javax.swing.border.LineBorder)1