private void zAddMouseListenersToTodayAndClearButtons ( ) { labelSetDateToToday . addMouseListener ( new MouseLiberalAdapter ( ) { @ Override public void mouseLiberalClick ( MouseEvent e ) { labelSetDateToTodayMousePressed ( e ) ; } @ Override public void mouseEnter ( MouseEvent e ) { labelIndicatorMouseEntered ( e ) ; } @ Override public void mouseExit ( MouseEvent e ) { labelIndicatorMouseExited ( e ) ; } } ) ; labelClearDate . addMouseListener ( new MouseLiberalAdapter ( ) { @ Override public void mouseLiberalClick ( MouseEvent e ) { labelClearDateMousePressed ( e ) ; } @ Override public void mouseEnter ( MouseEvent e ) { labelIndicatorMouseEntered ( e ) ; } @ Override public void mouseExit ( MouseEvent e ) { labelIndicatorMouseExited ( e ) ; } } ) ; }
zAddMouseListenersToTodayAndClearButtons This adds the needed mouse listeners to the today button and the clear button . Any previous mouse listeners will be deleted .