public void connect(String view){
  try {
    reader=new NetMapReader(server,port,this,view);
    reader.start();
    if (serverPanel != null) {
      serverAddrField.setEnabled(false);
      serverPortField.setEnabled(false);
      controlButton.setText(ServerDisconnectCmd);
      controlButton.setActionCommand(ServerDisconnectCmd);
    }
  }
 catch (  IOException e) {
    Debug.message("netmap","Can't start reader: " + e);
    disconnect();
  }
}

public void connect ( String view ) { try { reader = new NetMapReader ( server , port , this , view ) ; reader . start ( ) ; if ( serverPanel != null ) { serverAddrField . setEnabled ( false ) ; serverPortField . setEnabled ( false ) ; controlButton . setText ( ServerDisconnectCmd ) ; controlButton . setActionCommand ( ServerDisconnectCmd ) ; } } catch ( IOException e ) { Debug . message ( "netmap" , "Can't start reader: " + e ) ; disconnect ( ) ; } }
connects to the netmap server to get messages about the given view .
