カレンダーの休日表示
増田内科様の util/Holiday.javaを使わせていただいた。
client/LiteCalendarPanel.java
protected class DateRenderer extends DefaultTableCellRenderer { private static final long serialVersionUID = 5817292848730765481L; ・ ・ // 曜日によって ForeColor を変える if (col == 0) { this.setForeground(getSundayFore()); } else if (col == 6) { this.setForeground(getSaturdayFore()); } else { this.setForeground(getWeekdayFore()); } // 休日 masuda SimpleDate sd = tableModel.getDate(row, col); if (Holiday.isHoliday(new GregorianCalendar(sd.getYear(), sd.getMonth(), sd.getDay()))) { this.setForeground(getSundayFore()); } // masuda
« 傷病名編集機能 | トップページ | MastarTabPanel を MasterSetPanel で置き換える »
「OpenDolphin」カテゴリの記事
- 運用17年目のまとめ(2025.02.03)
- IME on/off の切換 - その2(2024.12.02)
- OrcaController オルコン(2024.11.28)
- OpenDolphin: java 21 / wildfly 34 への移行(2024.11.08)
- IME on/off の切り替え(2024.09.03)