package caltool.view_ui;

import java.util.*;
import java.awt.*;
import javax.swing.*;

public class YearlyCalendarDisplay {

    /**
     * Compose this as a vertical box, consisting of a date-banner row, a
     * days-of-the-week labels row, and an empty days grid.  The grid will be
     * populated by update.
     */
    public Component compose() {
        return null;
    }

    public Box composeMonthInYear(String monthName) {
        Box vbox = Box.createVerticalBox();
        JLabel label = new JLabel(monthName);
        label.setAlignmentX(Box.CENTER_ALIGNMENT);
        vbox.add(label);

        return vbox;
    }

    public void update(Observable o, Object arg) {

        /*
         * Go through the months, clear out the old stuff, set the
         * number of rows for each month, and put in the new stuff.
         */

    }

}