private void addYear(int i) {
        Calendar cal = Calendar.getInstance();
        cal.set(getDisplayYear(), 1, 1);
        cal.add(Calendar.YEAR, i);
        yearTextField.setText(String.valueOf(cal.get(Calendar.YEAR)));
    }
private void addYear ( int i ) { Calendar cal = Calendar . getInstance ( ) ; cal . set ( getDisplayYear ( ) , 1 , 1 ) ; cal . add ( Calendar . YEAR , i ) ; yearTextField . setText ( String . valueOf ( cal . get ( Calendar . YEAR ) ) ) ; }
Add year count to year field

@param i year nums to add