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