Re: How to get unique index furniture that is displayed in the panel ?
Hi,Sorry, but I don't see what you mean by "unique index".
By the way, it would be nice to explain also what is your project.
Code: Select all
private boolean isNrNoda(Integer typFunkcji, Integer nrNoda) {
for (PieceOfFurniture piece : this.home.getFurniture()) {
if (piece.getTypFunkcji()!=null) {
if (typFunkcji.equals(piece.getTypFunkcji())) {
if (nrNoda.equals(piece.getNrNoda())) {
JOptionPane.showMessageDialog(null, "In this type of function already is nod nr = "+nrNoda);
return true;
}
}
}
}
return false;
}