0

I don't want to use remove in this code

chessPane.getChildren().removeAll(piece[0][chessPane.getRowIndex(piece[0][6].getImageView())-2].getImageView(), piece[0][chessPane.getRowIndex(piece[0][6].getImageView()) - 1].getImageView());

anyone can provide a better solution to delete this node?

Maher
  • 2,517
  • 1
  • 19
  • 32
Yuhan-Lee
  • 1
  • 1

0 Answers0