001 package org.jdesktop.swingx.plaf;
002
003 import org.jdesktop.swingx.calendar.JXMonthView;
004
005 import javax.swing.*;
006 import java.awt.*;
007 import java.util.Arrays;
008 import java.util.List;
009
010 public class JXMonthViewAddon extends AbstractComponentAddon {
011 public JXMonthViewAddon() {
012 super("JXMonthView");
013 }
014
015 @Override
016 protected void addBasicDefaults(LookAndFeelAddons addon, List<Object> defaults) {
017 super.addBasicDefaults(addon, defaults);
018 defaults.addAll(Arrays.asList(new Object[] {
019 defaults.add(JXMonthView.uiClassID),
020 defaults.add("org.jdesktop.swingx.plaf.basic.BasicMonthViewUI"),
021 "JXMonthView.monthStringBackground", new Color(138, 173, 209),
022 "JXMonthView.monthStringForeground", new Color(68, 68, 68),
023 "JXMonthView.daysOfTheWeekForeground", new Color(68, 68, 68),
024 "JXMonthView.selectedBackground", new Color(197, 220, 240),
025 "JXMonthView.flaggedDayForeground", Color.RED,
026 "JXMonthView.font", UIManager.getFont("Button.font"),
027 "JXMonthView.monthDownFileName", "resources/month-down.png",
028 "JXMonthView.monthUpFileName", "resources/month-up.png",
029 "JXMonthView.boxPaddingX", 3,
030 "JXMonthView.boxPaddingY", 3
031 }));
032 }
033 }