public void valueChanged(ListSelectionEvent e){
  if (_table == null) {
    return;
  }
  int row=_table.getSelectedRow();
  if (log.isDebugEnabled()) {
    log.debug("Table valueChanged: row= " + row);
  }
  if (row >= 0) {
    if (_updateButton != null) {
      _updateButton.setEnabled(true);
      _updateButton.setToolTipText(null);
    }
    NamedBean bean=getDeviceNamedBean();
    _readMem.setMemory(bean.getDisplayName());
    _writeMem.setMemory(bean.getDisplayName());
    _spinMem.setMemory(bean.getDisplayName());
    _comboMem.setMemory(bean.getDisplayName());
  }
 else {
    if (_updateButton != null) {
      _updateButton.setEnabled(false);
      _updateButton.setToolTipText(Bundle.getMessage("ToolTipPickFromTable"));
    }
  }
  validate();
}

public void valueChanged ( ListSelectionEvent e ) { if ( _table == null ) { return ; } int row = _table . getSelectedRow ( ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( "Table valueChanged: row= " + row ) ; } if ( row >= 0 ) { if ( _updateButton != null ) { _updateButton . setEnabled ( true ) ; _updateButton . setToolTipText ( null ) ; } NamedBean bean = getDeviceNamedBean ( ) ; _readMem . setMemory ( bean . getDisplayName ( ) ) ; _writeMem . setMemory ( bean . getDisplayName ( ) ) ; _spinMem . setMemory ( bean . getDisplayName ( ) ) ; _comboMem . setMemory ( bean . getDisplayName ( ) ) ; } else { if ( _updateButton != null ) { _updateButton . setEnabled ( false ) ; _updateButton . setToolTipText ( Bundle . getMessage ( "ToolTipPickFromTable" ) ) ; } } validate ( ) ; }
listselectionlistener action from table
