year = ((Integer)getSelectedValue()).intValue();
year = ((Integer)getSelectedItem()).intValue();
            public void actionPerformed(ActionEvent e) {                if ( getSelectedIndex()>=0 )                    year = ((Integer)getSelectedValue()).intValue();                else                    year = -1;            } } );