question: private void displayCalendar ( ) { KeyNamePair pp = ( KeyNamePair ) fieldResource . getSelectedItem ( ) ; if ( pp == null ) return ; int S_Resource_ID = pp . getKey ( ) ; m_mAssignment . setS_Resource_ID ( S_Resource_ID ) ; Timestamp date = fieldDate . getTimestamp ( ) ; int index = timePane . getSelectedIndex ( ) ; log . config ( "Index=" + index + ", ID=" + S_Resource_ID + " - " + date ) ; m_loading = true ; if ( index == 0 ) daySchedule . recreate ( S_Resource_ID , date ) ; else if ( index == 1 ) weekSchedule . recreate ( S_Resource_ID , date ) ; else monthSchedule . recreate ( S_Resource_ID , date ) ; m_loading = false ; repaint ( ) ; }
target:  Display Calendar for selected Resource, Time(day/week/month) and Date