question: private void updateButtons ( ) { boolean enabled = table . getSelectedRowCount ( ) == 1 ; add . setEnabled ( true ) ; remove . setEnabled ( enabled ) ; edit . setEnabled ( enabled ) ; moveUp . setEnabled ( enabled ) ; moveDown . setEnabled ( enabled ) ; if ( currentlyFiltering ) { add . setEnabled ( false ) ; edit . setEnabled ( false ) ; moveUp . setEnabled ( false ) ; moveDown . setEnabled ( false ) ; } }
target:  Update the enabled-state of the buttons.