selectedBox.paintComponent(g2d);
}
}
};
final DateTimeFormatter fmt = new DateTimeFormatterBuilder().appendDayOfWeekText().
appendLiteral(" - ").
appendDayOfMonth(2).
appendLiteral(". ").
appendMonthOfYearText().toFormatter();
columnHeader = new JPanel() {
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Shape oldClip = g.getClip();
DateTime tempDateTime = settings.getStartDate();
for (int x = 0; x < visibleDays; x++) {
g.setClip(new Rectangle2D.Double(x * dayWidth, 0,
dayWidth, columnHeaderHeight));
g.drawString(fmt.print(tempDateTime),
xTextOffset + x * dayWidth, yHeaderTextOffset);
tempDateTime = tempDateTime.plusDays(1);
}
g.setClip(oldClip);
}