public SAnchorYearMonthChooser() {
    super(new SFlowLayout(CENTER));

    getSession().addPropertyChangeListener(Session.LOCALE_PROPERTY, this);
    initLocaleDependent();

    backward.setIcon(new SResourceIcon("icons/ScrollLeft.gif"));
    backward.setToolTipText("<");
    backward.setVerticalTextPosition(TOP);
    backward.setHorizontalTextPosition(RIGHT);
    backward.setShowAsFormComponent(false);
    backward.addActionListener(this);

    forward.setIcon(new SResourceIcon("icons/ScrollRight.gif"));
    forward.setToolTipText(">");
    forward.setVerticalTextPosition(TOP);
    forward.setHorizontalTextPosition(RIGHT);
    forward.setShowAsFormComponent(false);
    forward.addActionListener(this);

    add(backward);
    add(label);
    add(forward);

    set(new java.util.GregorianCalendar(getLocale()));
  }
 protected void repaint() {
   forward.setVisible((year * 100 + month) < maximum);
   backward.setVisible((year * 100 + month) > minimum);
   label.setText(" " + monthLabels[month] + " " + year + " ");
 }