private void displayWarningIfEmptyCells(Synapse[][] weights){
  String warningMessage="Only fully connected source-target pairs \n" + "are supported.  Some zeros in the matrix \n" + "correspond to non-existent weights and \n"+ "cannot be modified in the viewer.";
  for (int i=0; i < weights.length; i++) {
    for (int j=0; j < weights[0].length; j++) {
      if (weights[i][j] == null) {
        JOptionPane.showMessageDialog(null,warningMessage,"Weight Matrix Error",JOptionPane.WARNING_MESSAGE);
        return;
      }
    }
  }
}

private void displayWarningIfEmptyCells ( Synapse [ ] [ ] weights ) { String warningMessage = "Only fully connected source-target pairs \n" + "are supported.  Some zeros in the matrix \n" + "correspond to non-existent weights and \n" + "cannot be modified in the viewer." ; for ( int i = 0 ; i < weights . length ; i ++ ) { for ( int j = 0 ; j < weights [ 0 ] . length ; j ++ ) { if ( weights [ i ] [ j ] == null ) { JOptionPane . showMessageDialog ( null , warningMessage , "Weight Matrix Error" , JOptionPane . WARNING_MESSAGE ) ; return ; } } } }
display a warning message if there are empty weights .
