question: private void updateInfo ( ) { m_updating = true ; nameField . setText ( m_cc . getName ( ) ) ; appsHostField . setText ( m_cc . getAppsHost ( ) ) ; appsPortField . setText ( String . valueOf ( m_cc . getAppsPort ( ) ) ) ; bTestApps . setIcon ( getStatusIcon ( m_cc . isAppsServerOK ( false ) ) ) ; boolean rw = CConnection . isServerEmbedded ( ) ? true : ! m_cc . isAppsServerOK ( false ) ; dbTypeLabel . setReadWrite ( rw ) ; dbTypeField . setReadWrite ( rw ) ; dbTypeField . setSelectedItem ( m_cc . getType ( ) ) ; hostLabel . setReadWrite ( rw ) ; hostField . setReadWrite ( rw ) ; hostField . setText ( m_cc . getDbHost ( ) ) ; portLabel . setReadWrite ( rw ) ; dbPortField . setReadWrite ( rw ) ; dbPortField . setText ( String . valueOf ( m_cc . getDbPort ( ) ) ) ; sidLabel . setReadWrite ( rw ) ; sidField . setReadWrite ( rw ) ; sidField . setText ( m_cc . getDbName ( ) ) ; dbUidLabel . setReadWrite ( rw ) ; dbUidField . setReadWrite ( rw ) ; dbUidField . setText ( m_cc . getDbUid ( ) ) ; dbPwdField . setEditable ( rw ) ; dbPwdField . setText ( m_cc . getDbPwd ( ) ) ; cbBequeath . setReadWrite ( rw ) ; cbBequeath . setEnabled ( m_cc . isOracle ( ) ) ; cbBequeath . setSelected ( m_cc . isBequeath ( ) ) ; boolean fwEnabled = rw && m_cc . isViaFirewall ( ) && m_cc . isOracle ( ) ; cbFirewall . setReadWrite ( rw && m_cc . isOracle ( ) ) ; cbFirewall . setSelected ( m_cc . isViaFirewall ( ) ) ; fwHostLabel . setReadWrite ( fwEnabled ) ; fwHostField . setReadWrite ( fwEnabled ) ; fwHostField . setText ( m_cc . getFwHost ( ) ) ; fwPortLabel . setReadWrite ( fwEnabled ) ; fwPortField . setReadWrite ( fwEnabled ) ; fwPortField . setText ( String . valueOf ( m_cc . getFwPort ( ) ) ) ; bTestDB . setToolTipText ( m_cc . getConnectionURL ( ) ) ; bTestDB . setIcon ( getStatusIcon ( m_cc . isDatabaseOK ( ) ) ) ; m_updating = false ; }
target:  Update Fields from Connection