question: protected void enableButtons ( ) { m_C_BPartner_ID = - 1 ; int row = m_table . getSelectedRow ( ) ; boolean enabled = row != - 1 ; if ( enabled ) { Integer ID = m_table . getSelectedRowKey ( ) ; if ( ID != null ) { m_C_BPartner_ID = ID . intValue ( ) ; } } f_ok . setEnabled ( enabled ) ; log . fine ( "C_BPartner_ID=" + m_C_BPartner_ID ) ; }
target:  Enable/Set Buttons and set ID