protected void enableButtons(){
  m_c_order_id=-1;
  int row=m_table.getSelectedRow();
  boolean enabled=row != -1;
  if (enabled) {
    Integer ID=m_table.getSelectedRowKey();
    if (ID != null) {
      m_c_order_id=ID.intValue();
    }
  }
  f_ok.setEnabled(enabled);
  log.info("ID=" + m_c_order_id);
}

protected void enableButtons ( ) { m_c_order_id = - 1 ; int row = m_table . getSelectedRow ( ) ; boolean enabled = row != - 1 ; if ( enabled ) { Integer ID = m_table . getSelectedRowKey ( ) ; if ( ID != null ) { m_c_order_id = ID . intValue ( ) ; } } f_ok . setEnabled ( enabled ) ; log . info ( "ID=" + m_c_order_id ) ; }
enable / set buttons and set id
