title: javaFx—GridPane can delete node by inputing rowindex and coloumnindex
body: <p>I don't want to use remove in this code</p>
  
  <pre><code>chessPane.getChildren().removeAll(piece[0][chessPane.getRowIndex(piece[0][6].getImageView())-2].getImageView(), piece[0][chessPane.getRowIndex(piece[0][6].getImageView()) - 1].getImageView());
  </code></pre>
  
  <p>anyone can provide a better solution to delete this node?</p>