docs: public void connect(Connection c) {
  
          schemaFilter = null;
  
          if (c == null) {
              return;
          }
  
          if (cConn != null) {
              try {
                  cConn.close();
              } catch (SQLException e) {
  
                  //  Added: (weconsultants@users)
                  CommonSwing.errorMessage(e);
              }
          }
  
          cConn = c;
  
          // Added: (weconsultants@users) Need to barrow to get the table rowcounts
          rowConn = c;
  
          try {
              dMeta      = cConn.getMetaData();
              isOracle = (dMeta.getDatabaseProductName().indexOf("Oracle") >= 0);
              sStatement = cConn.createStatement();
  
              updateAutoCommitBox();
  
              // Workaround for EXTREME SLOWNESS getting this info from O.
              showIndexDetails = !isOracle;
  
              Driver driver = DriverManager.getDriver(dMeta.getURL());
              ConnectionSetting newSetting = new ConnectionSetting(
                  dMeta.getDatabaseProductName(), driver.getClass().getName(),
                  dMeta.getURL(),
                  dMeta.getUserName().replaceAll("@localhost", ""), "");
              Hashtable settings =
                  ConnectionDialogCommon.loadRecentConnectionSettings();
  
              ConnectionDialogCommon.addToRecentConnectionSettings(settings,
                      newSetting);
              ConnectionDialogSwing.setConnectionSetting(newSetting);
              refreshTree();
              clearResultPanel();
  
              if (fMain instanceof JApplet) {
                  getAppletContext().showStatus(
                      "JDBC Connection established to a "
                      + dMeta.getDatabaseProductName() + " v. "
                      + dMeta.getDatabaseProductVersion() + " database as '"
                      + dMeta.getUserName() + "'.");
              }
          } catch (SQLException e) {
  
              //  Added: (weconsultants@users)
              CommonSwing.errorMessage(e);
          } catch (IOException e) {
  
              //  Added: (weconsultants@users)
              CommonSwing.errorMessage(e);
          } catch (Exception e) {
              CommonSwing.errorMessage(e);
          }
      }