public void setEnabled ( boolean enabled ) { super . setEnabled ( enabled ) ; for ( short i = 0 ; i < days . length ; i ++ ) { if ( days [ i ] != null ) { days [ i ] . setEnabled ( enabled ) ; } } for ( short i = 0 ; i < weeks . length ; i ++ ) { if ( weeks [ i ] != null ) { weeks [ i ] . setEnabled ( enabled ) ; } } }
Enable or disable the JDayChooser .