The error indicated is in this line - label.addMouseListener(new DateComboBoxOld1.1(this, field, amount, label, selectedBorder, unselectedBorder));

This the code:

protected JLabel createUpdateButton(int field, int amount)
{
JLabel label = new JLabel();
Border selectedBorder = new EtchedBorder();
Border unselectedBorder = new EmptyBorder(selectedBorder.getBorderInsets(new JLabel()));
label.setBorder(unselectedBorder);
label.setForeground(this.foreground);
label.addMouseListener(new DateComboBoxOld1.1(this, field, amount, label, selectedBorder, unselectedBorder));

return label; }
Thanks in advance.