Im making tic tac toe app, after first click on the button it get either "O" or "X" text and I want to avoid second click, like I want to make it immune to second click
if (!pola[i].getText().isEmpty()) {
pola[i].setEnabled(true);
}
so far I got this,